예제 #1
0
 public static void SpikeTrap(Collider2D otherCollider, TrapCollisionEvent thisGameObject)
 {
     if (otherCollider.gameObject.tag == "Enemy")
     {
         otherCollider.gameObject.GetComponent <EnemyBaseBehavior>().speed /= 2;
         GameObject.Destroy(thisGameObject.gameObject);
     }
 }
예제 #2
0
 public static void DoSomething(Collider2D otherCollider, TrapCollisionEvent thisGameObject)
 {
     Debug.Log("This Works");
 }