Ejemplo n.º 1
0
    public override void Initalize()
    {
        base.Initalize();
        if (gameObject == null)
        {
            gameObject          = ResourceLoad.Load(GameUIRootName);
            gameObject.name     = "UGUIRoot";
            tranform            = gameObject.transform;
            eventSystem         = Utility.GameUtility.FindDeepChild <EventSystem>(gameObject, "EventSystem");
            eventSystem.enabled = true;
            ResetNode(tranform);
            InitalizeCanvas();
            GameObject.DontDestroyOnLoad(gameObject);
        }

        InitalizePreLoadUI();
    }