コード例 #1
0
ファイル: InfoPanel.cs プロジェクト: Cramena/DasKapital
 public void LaunchDisable()
 {
     appearable.LaunchDisappear();
     if (commodity != null)
     {
         commodity.ResetInfoPanelTimer();
     }
     disablePending = true;
 }
コード例 #2
0
 public void SetContinueButtonActive(bool _active)
 {
     if (_active)
     {
         continueButton.gameObject.SetActive(_active);
         continueButton.GetComponent <Button>().interactable = true;
     }
     else
     {
         continueButton.GetComponent <Button>().interactable = false;
         continueButton.LaunchDisappear();
     }
     manualProgress = _active;
 }
コード例 #3
0
 public void OnSwitch()
 {
     onProductionLayout = !onProductionLayout;
     ScenarioService.instance.inProductionPhase = onProductionLayout;
     if (onProductionLayout)
     {
         foreach (GameObject go in productionObjects)
         {
             go.SetActive(true);
         }
         foreach (GameObject go in exchangeObjects)
         {
             Appearable appearable = go.GetComponent <Appearable>();
             if (appearable == null)
             {
                 go.SetActive(false);
             }
             else
             {
                 appearable.LaunchDisappear();
             }
         }
     }
     else
     {
         foreach (GameObject go in exchangeObjects)
         {
             go.SetActive(true);
         }
         foreach (GameObject go in productionObjects)
         {
             Appearable appearable = go.GetComponent <Appearable>();
             if (appearable == null)
             {
                 go.SetActive(false);
             }
             else
             {
                 appearable.LaunchDisappear();
             }
         }
     }
 }