Ejemplo n.º 1
0
        public void Enter()
        {
            GameObject pPlanetObjIns = Resources.Load(ResPath) as GameObject;

            if (pPlanetObjIns == null)
            {
                Debug.LogError("Not Find Planet Res");
                return;
            }

            GameObject MapObj = GameObject.Instantiate(pPlanetObjIns);

            m_Emit = MapObj.GetComponentInChildren <TestBeanEmitter>();

            m_Plant = MapObj.GetComponentInChildren <GamePlanet>();

            m_Plant.ChangeState(new PlanetReady(m_Plant));
        }
Ejemplo n.º 2
0
        public void Enter()
        {
            GameObject MapObj = m_Game.MapObj;

            if (MapObj == null)
            {
                Debug.LogError("Not Find MapObj");
                return;
            }

            MapObj.SetActive(true);

            m_Emit = MapObj.GetComponentInChildren <TestBeanEmitter>();

            m_Plant = MapObj.GetComponentInChildren <GamePlanet>();

            m_Plant.ChangeState(new PlanetReady(m_Plant));
        }