void InitPool() { int line = mGameManagerScript.MapLine; int cell = mGameManagerScript.MapCell; NPCStarPool = new SCObjectPool <NPCStar> (InstanceNpcStar, line * cell); EliminateEffect = new SCObjectPool <GameObject> (InstanceEliminateEffect, 15); }
// Use this for initialization void Start() { mActiveBallQueue = new List <FireBall> (); FireBallNode = transform; mPool = new SCObjectPool <FireBall> (OnNewInstanceFireBall, 3); }
void Start() { GameBulletinBoard.SetFx(this); pool = new SCObjectPool <GameObject> (OnNewInstanceFx, 15); }
void InitObjectPool() { BallPool = new SCObjectPool <Ball>(NewInstanceBall, 100); }