private void CreateGameManager() { if (!GameObject.FindObjectOfType <GameManager>()) { GameObjectExtend.CreateGameObject(gameManager); } }
protected override void Awake() { base.Awake(); SetGameVersion(); if (canvasPrefab) { GameObjectExtend.CreateGameObject(canvasPrefab, out _, true); } if (eventSystemPrefab && !GameObject.FindObjectOfType <EventSystemManager>()) { GameObjectExtend.CreateGameObject(eventSystemPrefab, out _, true); } if (blackPagePrefab) { GameObjectExtend.CreateUIlement <BlackPageManager>(blackPagePrefab, out _blackPageManager, UI.CanvasTipology.UI, ChangeTypeEnum.Modify, true); if (_blackPageManager) { _blackPageManager.Disappear(); } } }