예제 #1
0
        void InitPool()
        {
            int line = mGameManagerScript.MapLine;
            int cell = mGameManagerScript.MapCell;

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