C# Class SimplePM.SimplePoolManager

Exibir arquivo Open project: woshihuo12/UnityHello Class Usage Examples

Public Methods

Method Description
AddOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void
ContainsSpawnPool ( string poolName ) : bool
CreateSpawnPool ( string poolName ) : SpawnPool
CreateSpawnPool ( string poolName, GameObject owner ) : SpawnPool
DestroyAllSpawnPool ( ) : void
DestroySpawnPool ( string poolName ) : bool
Instance ( ) : SimplePoolManager
RemoveOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void

Private Methods

Method Description
AddSpawnPool ( SpawnPool spawnPool ) : void
AssertValidPoolName ( string poolName ) : bool
RemoveSpawnPool ( SpawnPool spawnPool ) : bool

Method Details

AddOnCreatedDelegate() public method

public AddOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void
poolName string
createdDelegate OnCreatedDelegate
return void

ContainsSpawnPool() public method

public ContainsSpawnPool ( string poolName ) : bool
poolName string
return bool

CreateSpawnPool() public method

public CreateSpawnPool ( string poolName ) : SpawnPool
poolName string
return SpawnPool

CreateSpawnPool() public method

public CreateSpawnPool ( string poolName, GameObject owner ) : SpawnPool
poolName string
owner UnityEngine.GameObject
return SpawnPool

DestroyAllSpawnPool() public method

public DestroyAllSpawnPool ( ) : void
return void

DestroySpawnPool() public method

public DestroySpawnPool ( string poolName ) : bool
poolName string
return bool

Instance() public static method

public static Instance ( ) : SimplePoolManager
return SimplePoolManager

RemoveOnCreatedDelegate() public method

public RemoveOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void
poolName string
createdDelegate OnCreatedDelegate
return void