Example #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);
     }
 }
Example #2
0
 public static void DoSomething(Collider2D otherCollider, TrapCollisionEvent thisGameObject)
 {
     Debug.Log("This Works");
 }