// Use this for initialization void Start() { m_cMapEditMgr = GameObject.Find("MapEditer").GetComponent <C_MAPEDITMR>(); m_cMainBtn = gameObject.GetComponent <C_MAINBTN>(); GameObject goGameSettingView = GameObject.Find("MainCanvas").GetComponent <C_MAINBTN>().getDetialView(4).transform.GetChild(1).gameObject; m_ddDifficulty = goGameSettingView.transform.GetChild(0).GetChild(1).GetComponent <Dropdown>(); m_ddStartingCoinPrice = goGameSettingView.transform.GetChild(2).GetChild(1).GetComponent <Dropdown>(); m_ddStartResources = goGameSettingView.transform.GetChild(1).GetChild(1).GetComponent <Dropdown>(); }
// Use this for initialization void Start() { m_cMapEditer = gameObject.GetComponent <C_MAPEDITMR>(); playerManager = GameObject.Find("PlayerManager"); url = playerManager.GetComponent <PlayerManager>().url; m_ddDifficulty = GameObject.Find("MainCanvas").transform.GetChild(5).GetChild(1).GetChild(0).GetChild(1).GetComponent <Dropdown>(); m_ddStartResource = GameObject.Find("MainCanvas").transform.GetChild(5).GetChild(1).GetChild(1).GetChild(1).GetComponent <Dropdown>(); m_ddStartCoinPrice = GameObject.Find("MainCanvas").transform.GetChild(5).GetChild(1).GetChild(2).GetChild(1).GetComponent <Dropdown>(); m_strMapData = ""; m_listSelectedTower = new List <int>(); m_arNodeColor = new int[4]; m_listRoadCol = new List <int>(); m_listRoadRow = new List <int>(); init(); }
void OnDestroy() { m_cMapEditMgr.release(); m_cMapEditMgr = null; }