public override void Enter() { base.Enter(); if (!ai.Target) { ai.ChangeState(ai.patrolState); } else { StartCoroutine(WaitASec()); } if (ai.Target != null) { TargetAquired?.Invoke(); } ai.debugText = "Hovering"; }
public override void Enter() { base.Enter(); if (cb.Target == null) { cb.ChangeState(cb.patrolState); } coll.enabled = true; energy.Amount = 0f; }
public override void OnInspectorGUI() { base.OnInspectorGUI(); Kyllarr_Model kyllarr_model = target as Kyllarr_Model; //GUILayout if (GUILayout.Button("Kill Move")) { kyllarr_model.DashAttack(); } if (GUILayout.Button("Kill Me")) { kyllarr_model.Kyllarr_Dies(); } if (GUILayout.Button("DECOY!")) { kyllarr_model.JustGotHurt(); } if (GUILayout.Button("TestHover")) { kyllarr_model.ChangeState(kyllarr_model.hoverState); } }
IEnumerator changetoPartol() { yield return(new WaitForSeconds(3)); _characterBase.ChangeState(_characterBase.patrolState); }