Exemplo 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);
 }
Exemplo n.º 2
0
        public override void Cure()
        {
            if (timer.Enabled)
            {
                return;
            }

            cellState = new HealthyState();
            cellState.Handle(this);
        }
Exemplo 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);
        }
    }
Exemplo n.º 4
0
 public void ToLastStand()
 {
     healthyState = HealthyState.LastStand;
     billboardRender.material.SetFloat("_outline", 0);
     billboardRender.material.SetTexture("_mainTexture", healthyTexture);
 }