DRHPS/code-csharp/en_US/LivingRoom_KitchenController.cs
2025-04-08 11:31:35 +08:00

29 lines
646 B
C#

using UnityEngine;
public class LivingRoom_KitchenController : MonoBehaviour
{
public bool KitchenVisible;
public Animator LevelBackgroundAnimator;
[SerializeField]
private Cutscene_SansBeforePapyrus sans;
private void Start()
{
LevelBackgroundAnimator.Play("LivingRoom_KitchenShow", 0, 1f);
Invoke("resetSpeed", 0.1f);
}
private void resetSpeed()
{
LevelBackgroundAnimator.speed = 1f;
}
private void Update()
{
LevelBackgroundAnimator.SetBool("KitchenVisible", KitchenVisible);
sans.WalkToKitchen = KitchenVisible;
}
}