subEnergy() 공개 메소드

public subEnergy ( float energy ) : void
energy float
리턴 void
예제 #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);
    }