Esempio n. 1
0
 public void ToStaggerState()
 {
     Debug.Log("to staggered");
     staggerTime   = Time.time;
     staggeredLife = 0;
     healthyState  = HealthyState.Staggered;
     billboardRender.material.SetFloat("_outline", 1);
     billboardRender.material.SetTexture("_mainTexture", staggeredTexture);
 }
Esempio n. 2
0
        public override void Cure()
        {
            if (timer.Enabled)
            {
                return;
            }

            cellState = new HealthyState();
            cellState.Handle(this);
        }
Esempio n. 3
0
    public void ToDeadState()
    {
        healthyState = HealthyState.Dead;
        Debug.Log("Monster Died");
        AIBlackboard.instance.monsterDead.transform.position = transform.position;
        AIBlackboard.instance.monsterDead.PlayOneShot(AIBlackboard.instance.monsterDead.clip);

        if (deathPile != null)
        {
            GameObject.Instantiate(deathPile, transform.position, Quaternion.identity);
        }
    }
Esempio n. 4
0
 public void ToLastStand()
 {
     healthyState = HealthyState.LastStand;
     billboardRender.material.SetFloat("_outline", 0);
     billboardRender.material.SetTexture("_mainTexture", healthyTexture);
 }