Exemplo n.º 1
0
    public void ReactToHit()
    {
        WanderingAI behavior = GetComponent <WanderingAI> ();

        if (behavior != null)
        {
            behavior.wasKilled();
        }         // wanderingai?


        StartCoroutine(Die());
    }     // hit