コード例 #1
0
    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));
            }
        }
    }
コード例 #2
0
 public void QueueAwake(SceneMonoBehaviour script)
 {
     awakes.Enqueue(script);
 }