Exemplo n.º 1
0
 /// <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));
 }
Exemplo n.º 2
0
 /// <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));
 }