Ejemplo n.º 1
0
    void Awake()
    {
        Instance = this;
        //SetDefaultMyGUI();

        mMyGUIList = new SortedList<int, MyGUI>();
        mRemoveGUI_LayerID_List = new List<int>();

        SetDefaultValue();
    }
 private static void AttachMyGUIBehavior()
 {
     GameObject gameObject = GameObject.Find("_Config");
     myGuiBehavior = gameObject.GetComponent<MyGUIBehavior>();
     if (myGuiBehavior == null)
         myGuiBehavior = gameObject.AddComponent<MyGUIBehavior>();
 }