Hero.subEnergy C# (CSharp) 메소드

subEnergy() 공개 메소드

public subEnergy ( float energy ) : void
energy float
리턴 void
  public void subEnergy(float energy) {
    _medium.subEnergy(energy);
  }

Usage Example

예제 #1
0
    private void updateEnergy(Vector3 moveAmount)
    {
        //float cost = moveAmount.sqrMagnitude*moveEnergyCost;

        //TODO remove this temporary modification
        //TODO use Time.deltaTime inside "react" methods
        float cost = 0;

        hero.subEnergy(cost);
    }