private void OnSkillDeactivate(SkillDeactivateAllMessage value) { GameMessage.StopListen <SkillDeactivateAllMessage>(OnSkillDeactivate); Button.isOn = false; _tooltipMessage.Action = TooltipAction.HIDE; GameMessage.Send(_tooltipMessage); }
public override void OnDestroy() { base.OnDestroy(); _skill = null; _message = null; GameMessage.StopListen <SkillMessage>(OnSkillSelected); }
public override void OnDestroy() { base.OnDestroy(); _compound = null; _compoundControlMessage = null; _compoundSelectMessage = null; _buttonStream = null; GameMessage.StopListen <CompoundSelectMessage>(OnCompoundSelected); }
private void Deactivate() { UnmarkHexes(); GameMessage.StopListen <HexClickedMessage>(OnHexClicked); if (_skillData != null) { _skillData.State = SkillState.UNLOCKED; _skillData = null; } }
private void OnDisable() { for (int i = 0; i < _compounds.Count; i++) { _compounds[i].Disable(); } disposables.Clear(); RemoveAllChildren(Container); GameModel.RemoveHandle <PlanetModel>(OnPlanetChange); GameMessage.StopListen <CompoundTypeMessage>(OnCompoundTypeMessage); }
public override void OnDestroy() { base.OnDestroy(); GameModel.RemoveHandle <PlanetModel>(OnPlanetChange); GameModel.RemoveHandle <UnitModel>(OnUnitChange); GameMessage.StopListen <SkillDeactivateAllMessage>(OnSkillDeactivate); _tooltipMessage.Action = TooltipAction.HIDE; GameMessage.Send(_tooltipMessage); _life = null; _skillCommand = null; _pay = null; _tooltipMessage = null; _deactivateMessage = null; _unit = null; }
private void OnDisable() { GameMessage.StopListen <SkillTypeMessage>(OnSkillTypeMessage); GameMessage.StopListen <SkillMessage>(OnSkillMessage); GameModel.RemoveHandle <UnitModel>(OnUnitChange); }
public override void OnDestroy() { base.OnDestroy(); _building = null; GameMessage.StopListen <BuildingUnlockMessage>(OnBuildingUnlockSelected); }
private void OnDisable() { GameMessage.StopListen <BuildingUnlockMessage>(OnBuildingChange); GameModel.RemoveHandle <PlanetModel>(OnPlanetChange); }