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

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