protected bool UpdateShelling(object data) { if (_prodShellingAttack.isFinished) { _prodShellingAttack.Clear(); _clsState.AddState(InitShelling, UpdateShelling); return(true); } if (_prodShellingAttack != null) { _prodShellingAttack.Update(); } return(false); }
private bool UpdateNightShelling(object data) { if (_prodShellingAttack.isFinished) { _prodShellingAttack.Clear(); _nCurrentShellingCnt++; _clsState.AddState(InitNightShelling, UpdateNightShelling); return(true); } if (_prodShellingAttack != null) { _prodShellingAttack.Update(); } return(false); }