/// <summary> /// Places the player on a gliding platform /// </summary> public void OnPlatform(GlidingPlatform platform) { this.platform = platform; // save the platform if we are on it. isOnPlatform = true; platformXOffset = Math.Abs(Position.X - (float)Math.Round(platform.Position.X)); }