コード例 #1
0
    private void CheckCollision(Collider2D c)
    {
        Spawnable s = c.GetComponent <Spawnable> ();

        if (s != null)
        {
            s.OnCollidedWithPlayer(this);
        }
    }