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); }
public override void Cure() { if (timer.Enabled) { return; } cellState = new HealthyState(); cellState.Handle(this); }
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); } }
public void ToLastStand() { healthyState = HealthyState.LastStand; billboardRender.material.SetFloat("_outline", 0); billboardRender.material.SetTexture("_mainTexture", healthyTexture); }