private void HideGatheredCanvases()
 {
     if (HideSettings)
     {
         bool GatheredCanvasesSettings = ObjectCanvasSettings.GetComponent <CanvasSettings>().Gathered;
         if (GatheredCanvasesSettings)
         {
             ObjectCanvasSettings.SetActive(false);
             HideSettings = false;
         }
     }
     if (HideModifications)
     {
         bool GatheredCanvasesModifications = ObjectCanvasModifications.GetComponent <CanvasModifications>().Gathered;
         if (GatheredCanvasesModifications)
         {
             ObjectCanvasModifications.SetActive(false);
             HideModifications = false;
         }
     }
     if (HideAbout)
     {
         bool GatheredCanvasesAbout = ObjectCanvasAbout.GetComponent <CanvasAbout>().Gathered;
         if (GatheredCanvasesAbout)
         {
             ObjectCanvasAbout.SetActive(false);
             HideAbout = false;
         }
     }
 }
 private void ButtonActionApply()
 {
     ApplyGameplayChanges();
     this.gameObject.SetActive(false);
     ObjectCanvasSettings.SetActive(true);
 }
 private void ButtonActionSettings()
 {
     Time.timeScale = 0;
     ObjectCanvasSettings.SetActive(true);
 }
Exemple #4
0
 private void ButtonActionReturn()
 {
     this.gameObject.SetActive(false);
     ObjectCanvasSettings.SetActive(true);
 }