Exemplo n.º 1
0
 public override void start()
 {
     for (int i = 0; i < particleSystems.Length; i++)
     {
         particleSystems[i].Play();
     }
     for (int i = 0; i < Startables.Length; i++)
     {
         Startable startable = Startables[i];
         if (startable != this && ((MonoBehaviour)startable).isActiveAndEnabled)
         {
             startable.start();
         }
     }
 }
Exemplo n.º 2
0
 private void beginFire()
 {
     if (curCooldown < cooldown)
     {
         return;
     }
     curCooldown = 0;
     for (int i = 0; i < particleSystems.Length; i++)
     {
         particleSystems[i].Play();
         justFired = true;
     }
     for (int i = 0; i < _startables.Length; i++)
     {
         Startable startable = _startables[i];
         if (((MonoBehaviour)startable).enabled)
         {
             startable.start();
         }
     }
 }
Exemplo n.º 3
0
 private void FixedUpdate()
 {
     if (step2 == null)
     {
         return;
     }
     if (!wasAtGround && step2.step.dockedState)
     {
         for (int i = 0; i < particleSystems.Length; i++)
         {
             particleSystems[i].Play();
         }
         for (int i = 0; i < _startables.Length; i++)
         {
             Startable startable = _startables[i];
             if (((MonoBehaviour)startable).enabled)
             {
                 startable.start();
             }
         }
     }
     wasAtGround = step2.step.dockedState;
 }