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