HeadScript.FixedUpdate C# (CSharp) Method

FixedUpdate() public method

public FixedUpdate ( ) : void
return void
    void FixedUpdate()
    {
        if (attacking) {
            charging = true;
            chargingColors();
            charge += 1;
            if(charge >= chargeMax) {
                attack();
                sprite.color = baseColor;
                attacking = false;
                charging = false;
                charge = 0;
            }
        }
    }