コード例 #1
0
 public override void StopScenario()
 {
     if (hexBuilder != null)
     {
         hexBuilder.ClearDecorations();
         hexBuilder = null;
     }
     if (scenarioUI != null)
     {
         scenarioUI.DisableCanvas();
         scenarioUI = null;
     }
 }
コード例 #2
0
 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);
 }
コード例 #3
0
 public void PrepareUI()
 {
     scenarioUI = StandartScenarioUI.GetCurrent(this);
     scenarioUI.ChangeIcon(UIController.iconsTexture, UIController.GetIconUVRect(Icons.FoundationRoute));
 }