C# Class QFramework.Pool.QGOPool

Datei anzeigen Open project: liangxiegame/QFramework

Public Methods

Method Description
NextAvailableObject ( ) : GameObject
QGOPool ( string poolName, GameObject poolObjectPrefab, int initCount, int maxSize, Transform pool ) : UnityEngine
ReturnObjectToPool ( string pool, GameObject po ) : void

Private Methods

Method Description
AddObjectToPool ( GameObject go ) : void
NewObjectInstance ( ) : GameObject

Method Details

NextAvailableObject() public method

public NextAvailableObject ( ) : GameObject
return UnityEngine.GameObject

QGOPool() public method

public QGOPool ( string poolName, GameObject poolObjectPrefab, int initCount, int maxSize, Transform pool ) : UnityEngine
poolName string
poolObjectPrefab UnityEngine.GameObject
initCount int
maxSize int
pool UnityEngine.Transform
return UnityEngine

ReturnObjectToPool() public method

public ReturnObjectToPool ( string pool, GameObject po ) : void
pool string
po UnityEngine.GameObject
return void