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 ButtonActionModify() { this.gameObject.SetActive(false); ObjectCanvasModifications.SetActive(true); ObjectCanvasModifications.GetComponent <CanvasModifications>().GatherGameAttributes(); }