public void SetActiveScreen(string tag, bool doInit) { GameObject go = GameObject.FindGameObjectWithTag(tag); SetActiveScreen(go.GetComponent <RectTransform>()); if (doInit) { SceneMonoBehaviour sceneMono = go.GetComponent <SceneMonoBehaviour>(); if (sceneMono != null) { sceneMono.Init(); } else { BridgeDebugger.Log(string.Format(" Screen {0} doesn't have Scene Monobehaviour to Init()", go.name)); } } }
public void QueueAwake(SceneMonoBehaviour script) { awakes.Enqueue(script); }