示例#1
0
 public bool ActivateWallJump()
 {
     if (energyComponent == null)
     {
         energyComponent = GetComponentInParent <EnergyComponent>();
     }
     if (energyComponent.SpendEnergy(ActivationCost))
     {
         this.enabled = true;
         movementComponent.CanWallStick = true;
         return(true);
     }
     return(false);
 }
示例#2
0
 public bool ActivateSprint()
 {
     if (energyComponent.SpendEnergy(ActivationCost))
     {
         CanSprint = true;
         return(true);
     }
     return(false);
 }