示例#1
0
    void Start()
    {
        nTropi       = 0;
        m_bTropi     = new bool[10];
        m_pLayer     = CSLayerMng.I.CreateLayer("FirstLayer", 0);
        m_pPopLayer1 = CSLayerMng.I.CreateLayer("PopLayer1", 100);
        m_pPopLayer2 = CSLayerMng.I.CreateLayer("PopLayer2", 150);

        m_pScene = CSPrefabMng.I.CreatePrefab(m_pLayer.m_pAnchor, "1_Scene/4_House/HouseMainPrefab", "Main_House");

        for (int i = 0; i < JAGameDataFile.I._nTropiMaxCount; i++)
        {
            m_bTropi[i] = JAGameDataFile.I.GetData_Bool("Tropi10" + i);

            if (m_bTropi[i] == false)
            {
                nTropi++;
            }
        }
        Debug.Log(nTropi);
        if (nTropi >= JAGameDataFile.I._nTropiMaxCount)
        {
            string sTropiTitle = "엔딩 트로피";
            string sTropi      = "";
            sTropi += "가지고있는 트로피가 없습니다!" + sEnter;
            sTropi += "모든집을 업그레이드후" + sEnter;
            sTropi += "트로피를 모아봅시다!";

            JAMenuData_Mng.I.CreatePopup(m_pPopLayer1.m_pAnchor, "Pop_NoTropi", sTropiTitle, sTropi, E_JA_POPUP.E_POP_OK);
        }
    }
示例#2
0
    void Start()
    {
        m_pLayer     = CSLayerMng.I.CreateLayer("FirstLayer", 0);
        m_pPopLayer1 = CSLayerMng.I.CreateLayer("PopLayer1", 100);

        m_pScene = CSPrefabMng.I.CreatePrefab(m_pLayer.m_pAnchor, "1_Scene/5_Result/ResultMainPrefab", "Result_House");
    }
示例#3
0
    // Use this for initialization
    void Start()
    {
        m_pGameLayer = CSLayerMng.I.CreateLayer("GameLayer", 0);
        m_pUILayer   = CSLayerMng.I.CreateLayer("UILayer", 100);

        m_pGame.pObj = CSPrefabMng.I.CreatePrefab(m_pGameLayer.m_pAnchor, "1_Scene/2_Game/GameMainPrefab", "GameMainPrefab");
        m_pGame.pSrc = m_pGame.pObj.GetComponent <JHGame_MainLayer>();
        m_pGame.pSrc.Enter();
        m_pUI.pObj = CSPrefabMng.I.CreatePrefab(m_pUILayer.m_pAnchor, "1_Scene/2_Game/GameUI", "GameUI");
        m_pUI.pSrc = m_pUI.pObj.GetComponent <JHGame_UILayer>();
        m_pUI.pSrc.Enter();
    }
示例#4
0
    // Use this for initialization
    void Start()
    {
        m_pLayer     = CSLayerMng.I.CreateLayer("FirstLayer", 0);
        m_pPopLayer1 = CSLayerMng.I.CreateLayer("PopLayer1", 100);
        m_pPopLayer2 = CSLayerMng.I.CreateLayer("PopLayer2", 200);

        //m_pScene = CSPrefabMng.I.CreatePrefab(m_pLayer.m_pAnchor, "1_Scene/1_Title/Main_Title", "Main");
        //m_pScene = CSPrefabMng.I.CreatePrefab(m_pLayer.m_pAnchor, "1_Scene/1_Title/TitleMainprefab", "Main");
        m_pScene = CSPrefabMng.I.CreatePrefab(m_pLayer.m_pAnchor, "1_Scene/1_Title/TitleMainPrefab(new)", "Main");

        if (CSSoundMng.I.IsPlay("MrChu") == false)
        {
            CSSoundMng.I.Play("MrChu", true);
        }

        if (JAGameDataFile.I.GetData_Bool(JAGameDataFile.I._sFirstGameStr) == true && JAGameDataFile.I.GetData_Bool("TutoCheck") == false)  // JAMenuData_Mng.I._bTutorialCheck == false)
        {
            //Debug.Log("asd");
            CSPrefabMng.I.CreatePrefab(m_pPopLayer1.m_pAnchor, "2_Objects/Popup/Pop_Black", "Pop_BlackScreen");
            StartCoroutine(Tutorial_Delay());
            return;
        }
        else
        {
            if (JAGameDataFile.I.GetData_Bool(JAGameDataFile.I._sFirstGameStr) == false && JAGameDataFile.I.GetData_Bool("TutoCheck") == true)
            {
                m_pPopTutorial.pObj = CSPrefabMng.I.CreatePrefab(m_pPopLayer1.m_pAnchor, "2_Objects/Popup/Pop_TutorialMenu", "Pop_TutorialMenu");
                m_pPopTutorial.pSrc = m_pPopTutorial.pObj.GetComponent <JHMessageTutorial_Menu>();
                m_pPopTutorial.pSrc.Enter();
            }
            else
            {
                if (JAGameDataFile.I.GetData_Bool("AppBanner") == true)
                {
                    string sAppTitle = "게임을 평가해 주세요!";
                    string sAppText  = "";
                    sAppText += "돈쏘나기를 플레이 해주셔서" + Enter + "감사합니다." + Enter;
                    sAppText += "저희 게임에 후기와 평점을" + Enter + "피드백 해주시면" + Enter;
                    sAppText += "[i]5000G[/i]를 드립니다!";

                    JAMenuData_Mng.I.CreatePopup(m_pPopLayer1.m_pAnchor, "Pop_AppPlay", sAppTitle, sAppText, E_JA_POPUP.E_POP_ALL, "JAAppBannerBtn", "JAAppBannerCancelBtn");
                }

                if (JAMenuData_Mng.I.m_pPopupData_String.GetPopEnable() == true)
                {
                    JAMenuData_Mng.I.CreatePopup(m_pPopLayer2.m_pAnchor, "GooglePop_0", JAMenuData_Mng.I.m_pPopupData_String.m_sTitle, JAMenuData_Mng.I.ReplaceNewLine(JAMenuData_Mng.I.m_pPopupData_String.m_sText), E_JA_POPUP.E_POP_OK);
                }
            }
        }

        //JHTitle_MainLayer.I.Enter();
    }
示例#5
0
    /// <summary>
    /// 디버그 레이어 만들기
    /// </summary>
    /// <returns></returns>
    public CSLayer CreateDebugLayer()
    {
        string sName = "DebugLayer";

        foreach (CSLayer pObj in m_pLayerList)
        {
            if (pObj.transform.name == sName)
            {
#if _debug
                Debug.Log(" OverLapName Layer [CreatePrefab/CSLayerMng.cs]");
#endif
                return(null);
            }
        }

        GameObject pLayerObj = CSPrefabMng.I.CreatePrefab("0_Library/CSDebugLayer", sName);
        CSPrefabMng.I.m_pLive_PrefabList.Remove(pLayerObj.name);
        if (pLayerObj == null)
        {
#if _debug
            Debug.Log(" Can't Find LayerObj [CreatePrefab/CSLayerMng.cs]");
#endif
            return(null);
        }
        CSLayer pLayerSrc = pLayerObj.GetComponent <CSLayer>();
        bool    bCreate   = false;
        for (int i = 0; i < m_nMaxLayer; i++)
        {
            if (m_bSwitchCullLayer[i] == false)
            {
                bCreate = true;

                pLayerSrc.Enter(LayerMask.NameToLayer("CSLayerDebug"), 3000, i);
                // m_pLayerList.Add(pLayerSrc);
                return(pLayerSrc);
            }
        }
        if (bCreate == false)
        {
#if _debug
            Debug.Log(" Max Layer  [CreatePrefab/CSLayerMng.cs]");
#endif
            return(null);
        }

        return(null);
    }
示例#6
0
    void Start()
    {
        m_pPopLayer = CSLayerMng.I.CreateLayer("PopLayer", 100);

        CSPrefabMng.I.ResourceLoadinList(E_RESOURCETYPE.E_PERMANENT, "0_Library/CSDebugLayer");
        CSPrefabMng.I.ResourceLoadinList(E_RESOURCETYPE.E_PERMANENT, "0_Library/CSLayer");

        m_pLoadSlider.value = 0f;
        m_pLoadLabel.text   = "";

        JAMenuData_Mng.I.SetLoadString("정보 읽는다 냥..");

        JAMenuData_Mng.I.m_pAppData_String.Enter();
        JAMenuData_Mng.I.m_pPopupData_String.Enter();
        JAMenuData_Mng.I.m_pStatData_String.Enter();
        JAMenuData_Mng.I.m_pHouseData_String.Enter();
        JAMenuData_Mng.I.m_pTropiData_String.Enter();

        JAGameDataFile.I.SetData("AppVersion", JAGameDataFile.I._sAppVersion);

        bGo   = false;
        fTime = 0.0f;
    }
示例#7
0
        /// <summary>
        /// 从图层获取CSLayer。
        /// </summary>
        /// <param name="layer">待递归的图层</param>
        /// <param name="layerID">待递归的图层编号(CSLayer相关的编号)(父图层的编号+‘_’本层编号),根节点ID为""</param>
        /// <returns></returns>
        public static void GetLayerListByLayer(ref List <CSLayer> nodeLayerList, ref List <CSLayer> groupLayerList, ILayer layer, string layerID)
        {
            if (layer is IGroupLayer || layer is ICompositeLayer)
            {
                if (groupLayerList == null)
                {
                    groupLayerList = new List <CSLayer> {
                    }
                }
                ;
                CSLayer csLayer = new CSLayer(layer, layerID);
                groupLayerList.Add(csLayer);

                //IGroupLayer groupLayer = layer as IGroupLayer;
                //ICompositeLayer cLayer = groupLayer as ICompositeLayer;
                ICompositeLayer cLayer   = layer as ICompositeLayer;
                ILayer          tmpLayer = null;
                for (int i = 0; i < cLayer.Count; i++)
                {
                    tmpLayer = cLayer.get_Layer(i);
                    GetLayerListByLayer(ref nodeLayerList, ref groupLayerList, tmpLayer, layerID + "_" + i.ToString());
                }
            }
            else
            {
                if (nodeLayerList == null)
                {
                    nodeLayerList = new List <CSLayer> {
                    }
                }
                ;
                CSLayer csLayer = new CSLayer(layer, layerID);
                nodeLayerList.Add(csLayer);
            }
        }
    }
}
示例#8
0
 public LayerObject(CSLayer customWidget)
     : base((CSNode)customWidget)
 {
 }
示例#9
0
 public LayerObject(CSLayer customWidget) : base(customWidget)
 {
 }