subEnergy() public method

public subEnergy ( float energy ) : void
energy float
return void
コード例 #1
0
ファイル: CellControl.cs プロジェクト: afaucher17/Hero.Coli
    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);
    }