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