Exemplo n.º 1
0
 public static void RunImplicitActionTest(ManagedArray <Entity> array, int testCount)
 {
     for (int i = 0; i < testCount; i++)
     {
         array.Run(TestEntity);
     }
 }
Exemplo n.º 2
0
 public static void RunStoredActionTest(ManagedArray <Entity> array, int testCount)
 {
     for (int i = 0; i < testCount; i++)
     {
         array.Run(_stored);
     }
 }
Exemplo n.º 3
0
 public static void RunExplicitActionTest(ManagedArray <Entity> array, int testCount)
 {
     ManagedArray <Entity> .RefDelegate del = TestEntity;
     for (int i = 0; i < testCount; i++)
     {
         array.Run(del);
     }
 }
Exemplo n.º 4
0
 private void CheckRigidbodies()
 {
     if (_rbList == null)
     {
         _rbList = EntityController.GetComponentArray <RigidbodyComponent>();
     }
     if (_rbList != null)
     {
         _rbList.Run(CheckPaused);
     }
 }
Exemplo n.º 5
0
 public void OnSystemUpdate(float dt)
 {
     if (_list == null)
     {
         _list = EntityController.GetComponentArray <CollisionCheckForward>();
     }
     if (_list != null)
     {
         _list.Run(_del);
     }
 }
Exemplo n.º 6
0
 public void OnSystemUpdate(float dt)
 {
     if (_list == null)
     {
         _list = EntityController.GetComponentArray <AnimatorData>();
     }
     if (_list != null)
     {
         _list.Run(_del);
     }
 }
Exemplo n.º 7
0
 public void OnSystemUpdate(float dt)
 {
     if (_list == null)
     {
         _list = EntityController.GetComponentArray <ModifiersContainer>();
     }
     if (_list != null)
     {
         _list.Run(_del);
         MessageKit.post(Messages.ModifiersUpdated);
     }
 }
Exemplo n.º 8
0
 public void OnSystemUpdate(float dt)
 {
     for (int i = _moveTweens.Count - 1; i >= 0; i--)
     {
         _moveTweens[i].Tr.position = _moveTweens[i].Tween.Get();
         if (_moveTweens[i].Owner.Tags.Contain(EntityTags.RotateToMoveTarget))
         {
             RotateTowardsMoveTarget(_moveTweens[i].Tr, _moveTweens[i].Tween.EndValue, _moveTweens[i].Owner.Get <RotationSpeed>()?.Speed ?? 10);
         }
         if (!_moveTweens[i].Tween.Active)
         {
             FinishMove(_moveTweens[i].Owner, _moveTweens[i].Tween.EndValue);
             _moveTweens.RemoveAt(i);
         }
     }
     if (_rotateList == null)
     {
         _rotateList = EntityController.GetComponentArray <RotateToTarget>();
     }
     if (_rotateList != null)
     {
         _rotateList.Run(_rotateDel);
     }
     if (_simpleMoveList == null)
     {
         _simpleMoveList = EntityController.GetComponentArray <SimplerMover>();
     }
     if (_simpleMoveList != null)
     {
         _simpleMoveList.Run(_simpleMoveDel);
     }
     if (_arcMoverList == null)
     {
         _arcMoverList = EntityController.GetComponentArray <ArcMover>();
     }
     if (_arcMoverList != null)
     {
         _arcMoverList.Run(_arcMoveDel);
     }
 }