예제 #1
0
    // Use this for initialization
    void Start()
    {
#if NewGuide
        CG_Bike.SetActive(false);
        NewJCCreateRole.OpenUI().OnCreateSucess = () =>
        {
            //---------------------------------------
            //---------------片头-----------------
            //---------------------------------------
            if (!CG_Bike.activeSelf)
            {
                CG_Bike.SetActive(true);
            }
            play();
        };
#else
        play();
#endif
    }
예제 #2
0
    public static NewJCCreateRole OpenUI()
    {
        NewJCCreateRole _this = null;

        if (ParentCamera != null)
        {
            Object prefab = PrefabLoader.loadFromPack("JC/UI Root_CreateRole");
            if (prefab != null)
            {
                GameObject obj = Instantiate(prefab) as GameObject;
                _this = obj.GetComponentInChildren <NewJCCreateRole>();
            }
            else
            {
                SQYAlertViewMove.CreateAlertViewMove("Create UI Root_CreateRole Fail!");
            }
        }
        else
        {
            SQYAlertViewMove.CreateAlertViewMove("Not found UITop Layer at Guidex Scene!");
        }
        return(_this);
    }