public override ACharacterState <Grunt, Grunt.GruntStateTypes> Update(Grunt Target, float DT) { if (resourceTarget.Health <= 0) { return(new GruntStateStopped()); } if (!gatherTimer.Update().IsRunning) { Target.ReceiveResourceBundle(resourceTarget.TryExploit(CARRYING_CAPACITY)); return(new GruntStateStopped()); } return(this); }
public void IncrementCombo() { if (didIncrementThisFrame) { return; } comboWindow.Update(); if (!comboWindow.IsRunning) { ComboCount = 1; } else { ComboCount++; } didIncrementThisFrame = true; comboWindow.Start(); }