private void CheckCollision(Collider2D c) { Spawnable s = c.GetComponent <Spawnable> (); if (s != null) { s.OnCollidedWithPlayer(this); } }
private void CheckCollision(Collider2D c) { Spawnable s = c.GetComponent <Spawnable> (); if (s != null) { s.OnCollidedWithPlayer(this); } }