예제 #1
0
 public void OnChunkLevelEnter(LevelChunkInteractiveObject nextLevelChunkInteractiveObject)
 {
     if (old == null)
     {
         this.old = nextLevelChunkInteractiveObject.GetTransitionableLevelFXType();
         Debug.Log(MyLog.Format("SAME"));
         this.OnNewChunkLevel(this.old, this.current, forceInstantTransition: true);
     }
     else if (current == null)
     {
         if (this.old != nextLevelChunkInteractiveObject.GetTransitionableLevelFXType())
         {
             this.current = nextLevelChunkInteractiveObject.GetTransitionableLevelFXType();
             this.OnNewChunkLevel(this.old, this.current);
         }
     }
     else
     {
         if (this.current != nextLevelChunkInteractiveObject.GetTransitionableLevelFXType())
         {
             this.old     = this.current;
             this.current = nextLevelChunkInteractiveObject.GetTransitionableLevelFXType();
             this.OnNewChunkLevel(this.old, this.current);
         }
     }
 }
예제 #2
0
 public bool IsCurrentChunkTrackerEqualsTo(LevelChunkInteractiveObject compareChunkInteractiveObject)
 {
     return(this.current != null && this.current == compareChunkInteractiveObject.GetTransitionableLevelFXType());
 }