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 ButtonActionAbout() { this.gameObject.SetActive(false); ObjectCanvasAbout.SetActive(true); }