예제 #1
0
 public void PushPlatform(JPlatform platform)
 {
     if (platform == null)
     {
         return;
     }
     if (!_platforms.ContainsKey(platform.selfCollider))
     {
         _platforms.Add(platform.selfCollider, platform);
     }
 }
예제 #2
0
 public void RemovePlatform(JPlatform platform)
 {
     if (_platforms == null || _platforms.Count == 0)
     {
         return;
     }
     if (platform == null)
     {
         return;
     }
     _platforms.Remove(platform.selfCollider);
 }