示例#1
0
 /// <summary>
 /// Removes the reference to the manual stability platform once the player avatar leaves it.
 /// </summary>
 /// <param name="platform">Platform</param>
 public void LeaveManualStabilityPlatform(ManualStabilityPlatform platform)
 {
     if (this.manualStabilityPlatform == platform)
     {
         this.manualStabilityPlatform = null;
         this.isOverlappingManualStabilityPlatform = false;
     }
     this.GetPlayerMovement().canMove(true);
     this.GetPlayerAttack().canAttack(true);
 }
示例#2
0
 /// <summary>
 /// Sets the manual stability platform the player avatar is on.
 /// </summary>
 /// <param name="platform">Platform</param>
 public void OverlapManualStabilityPlatform(ManualStabilityPlatform platform)
 {
     this.manualStabilityPlatform = platform;
     this.isOverlappingManualStabilityPlatform = true;
 }