Exemplo n.º 1
0
        public override void LoadLevel()
        {
            base.LoadLevel();
            if (_isoWorld == null)
            {
                _isoWorld = GameObject.Find("ISOWorld").GetComponent <MyIsoWorld>();
            }
            //! 现在建筑都是静态的情况下就不调用了
            // GenLevelEntities();

            //! 如果以后有事件需要切换场景
            if (!LevelManager.Instance.IsInEvent)
            {
                LevelManager.Instance.StartCoroutine(EnterGame());
            }
            else
            {
                LevelManager.Instance.StartCoroutine(ReturnFromEvent());
            }
        }
Exemplo n.º 2
0
 public void RegisterMaster(MyIsoObject obj)
 {
     _world      = (LevelManager.Instance.MainLevel as LevelMain).MainWorld;
     _aiMaster   = obj;
     _bAIPausing = true;
 }