예제 #1
0
 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;
         }
     }
 }
예제 #2
0
 private void ButtonActionModify()
 {
     this.gameObject.SetActive(false);
     ObjectCanvasModifications.SetActive(true);
     ObjectCanvasModifications.GetComponent <CanvasModifications>().GatherGameAttributes();
 }