public override void StopScenario() { if (hexBuilder != null) { hexBuilder.ClearDecorations(); hexBuilder = null; } if (scenarioUI != null) { scenarioUI.DisableCanvas(); scenarioUI = null; } }
public static StandartScenarioUI GetCurrent(Scenario requester) { if (current == null) { current = Instantiate(Resources.Load <GameObject>("UIPrefs/scenarioCanvas")).GetComponent <StandartScenarioUI>(); } else { current.gameObject.SetActive(true); } current.SetScenario(requester); return(current); }
public void PrepareUI() { scenarioUI = StandartScenarioUI.GetCurrent(this); scenarioUI.ChangeIcon(UIController.iconsTexture, UIController.GetIconUVRect(Icons.FoundationRoute)); }