Beispiel #1
0
        /// <summary>
        /// 多场景管理器的初始化
        /// </summary>
        public void Initialize(string rCurScene, int rTileNum, Vector3 rPos)
        {
            this.mTileNum    = rTileNum;
            this.mLargeScene = Resources.Load <LargeScene>("MultiScene/" + rCurScene);

            // Test Scene
            CurrentTestSceneName = this.mLargeScene.ID;

            this.mSceneBlockBuffer = new SceneBlockBuffer(this.mTileNum);

            SceneBlockLoader.Instance.SetBuffer(this.mSceneBlockBuffer);

            this.Reset(rPos);
        }
Beispiel #2
0
 public void SetBuffer(SceneBlockBuffer rBlockBuffer)
 {
     this.mSceneBlockBuffer = rBlockBuffer;
 }