private void SetNextBehaviour(TreeBossBehaviours nextBehaviour) { if (currentBehaviour != TreeBossBehaviours.Dead) { currentBehaviour = nextBehaviour; hasTransitionedIn = false; } }
// Could be used to aggro if lots of damage or health below half /* * private void TookDamage(int currentHealth, int maxHealth) * { * * } */ public override void Activate(Vector3 pos, Quaternion rot) { base.Activate(pos, rot); ResetValues(); IsImmortal = true; currentBehaviour = TreeBossBehaviours.Sleep; //SetCollidersEnable(hitboxes, true); hasTransitionedIn = false; }