Exemplo n.º 1
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);
            }
        }
Exemplo n.º 2
0
 private void Awake()
 {
     rb = parent.GetComponent <Rigidbody>();
     ai = parent.GetComponent <Kyllarr_Model>();
 }
Exemplo n.º 3
0
 private void Awake()
 {
     states.GetComponent <HoverState>().TargetAquired += Enter;
     energy = parent.GetComponent <Energy>();
     cb     = parent.GetComponent <Kyllarr_Model>();
 }
Exemplo n.º 4
0
 private void Awake()
 {
     _whosAround = aI.GetComponent <WhosAround>();
     model       = aI.GetComponent <Kyllarr_Model>();
     fov         = aI.GetComponent <FieldOfView>();
 }