Exemple #1
0
        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";
        }
Exemple #2
0
        public override void Enter()
        {
            base.Enter();
            if (cb.Target == null)
            {
                cb.ChangeState(cb.patrolState);
            }

            coll.enabled  = true;
            energy.Amount = 0f;
        }
Exemple #3
0
        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);
            }
        }
Exemple #4
0
        IEnumerator changetoPartol()
        {
            yield return(new WaitForSeconds(3));

            _characterBase.ChangeState(_characterBase.patrolState);
        }