Beispiel #1
0
    protected void OnHitTarget()
    {
        Rocket r = target.GetComponent <Rocket>();

        r.DieWithoutLoss();
        mainRenderer.enabled = false;
        Destroy(gameObject, selfDestroyDelay);
    }