private void StartSelectObstacle(object sender, System.EventArgs e) { ChosenObstacle = null; BombsManager.ToggleReadyToDetonateHighLight(true); SelectObstacleSubPhase subphase = Phases.StartTemporarySubPhaseNew <SelectObstacleSubPhase>( Name, delegate { BombsManager.ToggleReadyToDetonateHighLight(false); Triggers.FinishTrigger(); } ); subphase.PrepareByParameters( SelectObstacle, TrySelectObstacle, Host.Owner.PlayerNo, true, Name, "Select obstacle to destroy", ImageUrl ); subphase.Start(); }
private void SelectObstacle(GenericObstacle obstacle) { Messages.ShowInfo("Obstacle was selected"); ChosenObstacle = obstacle; SelectObstacleSubPhase.SelectObstacle(); }
private void SelectObstacle(GenericObstacle obstacle) { SelectObstacleSubPhase.SelectObstacleNoCallback(); Messages.ShowInfo("An obstacle was selected"); ChosenObstacle = obstacle; StartMoveObstacleSubphase(); }
public override void Execute() { if (Phases.CurrentSubPhase is SelectObstacleSubPhase) { SelectObstacleSubPhase.ConfirmSelectionOfObstacle(GetString("name")); } else if (Phases.CurrentSubPhase is SelectTargetLockableSubPhase) { SelectTargetLockableSubPhase.ConfirmSelectionOfObstacle(GetString("name")); } }
public override void Execute() { string obstacleName = GetString("name"); Console.Write($"Obstacle is chosen: {obstacleName}"); if (Phases.CurrentSubPhase is SelectObstacleSubPhase) { SelectObstacleSubPhase.ConfirmSelectionOfObstacle(obstacleName); } else if (Phases.CurrentSubPhase is SelectTargetLockableSubPhase) { SelectTargetLockableSubPhase.ConfirmSelectionOfObstacle(obstacleName); } }
private void RpcStartSyncSelectObstaclePreparation() { SelectObstacleSubPhase selectObstacleSubPhase = (Phases.CurrentSubPhase as SelectObstacleSubPhase); if (selectObstacleSubPhase != null) { GameMode.CurrentGameMode.FinishSyncSelectObstaclePreparation(); } else { Console.Write("Waiting to sync select obstacle subphase...", LogTypes.Everything, true, "orange"); GameManagerScript Game = GameObject.Find("GameManager").GetComponent <GameManagerScript>(); Game.Wait(0.5f, RpcStartSyncSelectObstaclePreparation); } }
private void SelectObstacle(object sender, EventArgs e) { Selection.ChangeActiveShip(HostShip); SelectObstacleSubPhase subphase = Phases.StartTemporarySubPhaseNew <SelectObstacleSubPhase>( HostUpgrade.UpgradeInfo.Name, Triggers.FinishTrigger ); subphase.PrepareByParameters( SelectObstacle, TrySelectObstacle, HostShip.Owner.PlayerNo, true, HostUpgrade.UpgradeInfo.Name, "Select obstacle to move", HostUpgrade ); subphase.Start(); }
private void RpcSelectTargetOBstacle(string obstacleName) { SelectObstacleSubPhase currentSubPhase = (Phases.CurrentSubPhase as SelectObstacleSubPhase); currentSubPhase.ConfirmSelectionOfObstacleClient(obstacleName); }
public override void Execute() { SelectObstacleSubPhase.ConfirmSelectionOfObstacle(GetString("name")); }