Esempio n. 1
0
    public virtual void Kill()
    {
        alive = false;
        myBrain.AnnounceDeath();

        // no more moving around when you are dead! (for now)
        speedAngle = 0;

        // let's make you a skeleton
        mySpriteRenderer.color = Color.white;
        // TODO: Sprite for dead creature

        // collapse to the ground
        transform.localEulerAngles = new Vector3(90, 0, positionAngle);
    }