Example #1
0
 public void VisibilityRegister(KBatchedAnimController controller)
 {
     queuedRegistrations.Add(new RegistrationInfo
     {
         transformId          = controller.transform.GetInstanceID(),
         controllerInstanceId = controller.GetInstanceID(),
         controller           = controller,
         register             = true
     });
 }
Example #2
0
 public void VisibilityUnregister(KBatchedAnimController controller)
 {
     if (!App.IsExiting)
     {
         queuedRegistrations.Add(new RegistrationInfo
         {
             transformId          = controller.transform.GetInstanceID(),
             controllerInstanceId = controller.GetInstanceID(),
             controller           = controller,
             register             = false
         });
     }
 }
Example #3
0
 public void OnMovementStateChanged(Transform transform, bool is_moving)
 {
     if (!((UnityEngine.Object)transform == (UnityEngine.Object)null))
     {
         KBatchedAnimController component = transform.GetComponent <KBatchedAnimController>();
         int controller_instance_id       = component.GetInstanceID();
         ControllerChunkInfo value        = default(ControllerChunkInfo);
         bool test = controllerChunkInfos.TryGetValue(controller_instance_id, out value);
         DebugUtil.Assert(test);
         if (is_moving)
         {
             movingControllerInfos.Add(new MovingControllerInfo
             {
                 controllerInstanceId = controller_instance_id,
                 controller           = component,
                 chunkXY = value.chunkXY
             });
         }
         else
         {
             movingControllerInfos.RemoveAll((MovingControllerInfo x) => x.controllerInstanceId == controller_instance_id);
         }
     }
 }