Example #1
0
 void CreateSecretShop()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSDragonBallSecretMall");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         _UISecretShop = go.GetComponent <UISecretShop>();
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot);
     }
 }
Example #2
0
 void CreateSecretShopTag()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSScrectShopTag");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         _UISecretShopTag = go.GetComponent <UISecretShopTag>();
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._TopRoot);
     }
 }
 void InitRankCheckInfoPanel()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSDragonBallRankCheckInfo");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         mUIDragonBallRankCheckInfo = go.GetComponent <UIDragonBallRankCheckInfo>();
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot);
     }
 }
 public static void OpenUI()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSMailAndBattleRoot");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         _instance = go.GetComponent <UIMailAndBattleMain>();
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot);
     }
 }
Example #5
0
 // information  tag...  include delete, add friend, receive gift, send message and so on
 void CreateMessageTag()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSInformationTag");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         mUIMessageTag = go.GetComponent <UIMessageTag>();
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot);
     }
 }
Example #6
0
 void CreateaAnnounceUI()
 {
     UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSAnnounce");
     if (obj != null)
     {
         GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
         mUIAnnounce = go.GetComponent <UIAnnounce>();
         //RED.TweenShowDialog (go);
         RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._TopRoot);
     }
 }
    public static void OpenUI(int _type)
    {
        if (_Instance == null)
        {
            UnityEngine.Object obj = PrefabLoader.loadFromPack("LS/pbLSChallengeRankRoot");
            if (obj != null)
            {
                GameObject go = RUIMonoBehaviour.Instantiate(obj) as GameObject;
                _Instance = go.GetComponent <UIChallengeRank>();
                RED.AddChild(go.gameObject, DBUIController.mDBUIInstance._bottomRoot);
            }

            _Instance.Type = _type;
        }
    }