예제 #1
0
 // Start is called before the first frame update
 private void OnTriggerEnter2D(Collider2D collision)
 {
     if (collision.gameObject.CompareTag("Hamster"))
     {
         LinkedItem?.Toggle();
     }
 }
예제 #2
0
파일: Key.cs 프로젝트: PRK115/SorceryCode
 public virtual void ConsumedBehaviour()
 {
     lockedDoor.Toggle(true);
     Destroy(gameObject);
 }