コード例 #1
0
    // Collision with a blocker
    void OnCollisionEnter(Collision collision)
    {
        isAlive = false;
        Blocker blocker = collision.gameObject.GetComponent <Blocker>();

        blocker.Explode();
        Explode();
    }