subEnergy() public method

public subEnergy ( float energy ) : void
energy float
return 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);
    }