コード例 #1
0
ファイル: TrapActivator.cs プロジェクト: cinfa78/YAVD
 void OnTriggerEnter(Collider other)
 {
     Debug.Log("Trap Activated");
     if (other.CompareTag("Player") || other.CompareTag("Monster"))
     {
         trap.Activate();
     }
 }