Beispiel #1
0
 protected override void RealAI()
 {
     timer++;
     TargetTracker.Update();
     if (!Active)
     {
         return;
     }
     if (ProjController?.IsEnd != false)
     {
         if (rushTime++ >= maxRushTime)
         {
             NextMachine();
         }
     }
     else
     {
         TNPC.ai[0] = 2f;
         if (TNPC.ai[1] % 20 == 19f)
         {
             TNPC.ai[1] = 1f;
         }
         TNPC.ai[2] = (float)Math.Abs(0.6 * Math.Sin(timer / 180 * Math.PI * 5 / 90));
         TNPC.ai[3] = 0f;
         ProjController.Update();
     }
 }
Beispiel #2
0
        protected override void RealAI()
        {
            TNPC.ai[0]   = -3f;
            TNPC.aiStyle = -1;

            Moving.Update();
            if (!Active)
            {
                return;
            }
            ProjActing.Update();
            if (ProjActing.IsEnd)
            {
                ToNextProjActing();
            }
        }