Ejemplo n.º 1
0
        public void FixedUpdate()
        {
            if (X8Animator != null)
            {
                StateInfo = X8Animator.GetCurrentAnimatorStateInfo(0);
                CheckPhaseStrike();
                CheckTackle();
                CheckShoot();
                CheckStrafe();
                CheckPlayerThrowingBall();
                CheckedChargedRun();
            }


            ReadyToScore();
            if (EnemyAI != null)
            {
                EnemyAI_Movement();
            }

            if (TackleTimer.IsEnabled)
            {
                TackleTimer.IncrementTimer();
            }

            if (ShootTimer.IsEnabled)
            {
                ShootTimer.IncrementTimer();

                float angle = CentralHub.VectorToAngle(CameraFocus.transform.position - this.transform.position);
                angle = CentralHub.AdjustAngle(angle);
                FaceMe(angle); //face the player in the direction he will shoot for short timer
                //   PlayerAttackState = AttackMode.IsFiringAbility; //we are shooting
            }
        }
Ejemplo n.º 2
0
 // Update is called once per frame
 void FixedUpdate()
 {
     if (shieldPercentage < 100)
     {
         ShieldTimer.IncrementTimer();
     }
 }
Ejemplo n.º 3
0
 // Update is called once per frame
 void Update()
 {
     Trajectory = Path;
     if (LifeTimer != null)
     {
         LifeTimer.IncrementTimer();// update the ````timer on the timer
     }
 }
Ejemplo n.º 4
0
 /*! Medthods that charges the weapon*/
 public void Charging()
 {
     ChargeTimer.IncrementTimer();
 }
Ejemplo n.º 5
0
 /*!Called when the timer limit is reached*/
 public void FireShootTimer()
 {
     ShootTimer.TurnTimerOn();
     ShootTimer.IncrementTimer();
 }