예제 #1
0
    void ExplodeBullet()
    {
        Explode explode = GetComponent <Explode>();

        if (explode)
        {
            explode.Fire();
        }

        else
        {
            Debug.LogError("Unable to find Explode component on: " + name);
        }
    }