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