Example #1
0
 public override void Run()
 {
     if (rotator)
     {
         rotator.tick(Time.deltaTime);
         if (rotator.reachedFullSpeed())
         {
             done = true;
         }
         base.Run();
     }
 }
Example #2
0
 public override void Run()
 {
     if (rotator)
     {
         rotator.tick(Time.deltaTime);
         if (rotator.isStopped())
         {
             done = true;
         }
         base.Run();
     }
 }
Example #3
0
    public override void Run()
    {
        if (rotator != null)
        {
            rotator.tick(Time.deltaTime);
            if (spin)
            {
                if (rotator.getCompletedRotationsCount() >= spins)
                {
                    done = true;
                }
            }
            else
            {
                done = true;
            }

            base.Run();
        }
    }