Initial commit

This commit is contained in:
2025-04-08 11:31:35 +08:00
commit a5687dc451
13482 changed files with 5461110 additions and 0 deletions

View File

@ -0,0 +1,22 @@
using UnityEngine;
public class TRIG_KITCHENTOGGLE : MonoBehaviour
{
public LivingRoom_KitchenController Kitchen;
private void OnTriggerEnter2D(Collider2D other)
{
if ((bool)other.GetComponent<PlayerManager>())
{
Kitchen.KitchenVisible = true;
}
}
private void OnTriggerExit2D(Collider2D other)
{
if ((bool)other.GetComponent<PlayerManager>())
{
Kitchen.KitchenVisible = false;
}
}
}