public SceneBlockBuffer(int rTileNum) { this.mTileNum = rTileNum; this.mBlockBuffers = new List <SceneTileWrapper>(); this.mCurBlock = new SceneBlock(rTileNum); this.mPrevBlock = new SceneBlock(rTileNum); this.mMultiSceneRootGo = UtilTool.CreateGameObject("__multiSceneRoot"); }
public SoundPool(string rPoolName, int rInitCount = 0) { this.mObjectPool = new TObjectPool <AudioSource>(OnAlloc, OnFree, OnDestroy); this.mRootGo = UtilTool.CreateGameObject(rPoolName); this.mRootGo.transform.position = new Vector3(0, 0, 0); for (int i = 0; i < rInitCount; i++) { this.mObjectPool.Alloc(); } }