C# Class SimplePM.SimplePoolManager

Afficher le fichier Open project: woshihuo12/UnityHello Class Usage Examples

Méthodes publiques

Méthode 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

Méthode Description
AddSpawnPool ( SpawnPool spawnPool ) : void
AssertValidPoolName ( string poolName ) : bool
RemoveSpawnPool ( SpawnPool spawnPool ) : bool

Method Details

AddOnCreatedDelegate() public méthode

public AddOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void
poolName string
createdDelegate OnCreatedDelegate
Résultat void

ContainsSpawnPool() public méthode

public ContainsSpawnPool ( string poolName ) : bool
poolName string
Résultat bool

CreateSpawnPool() public méthode

public CreateSpawnPool ( string poolName ) : SpawnPool
poolName string
Résultat SpawnPool

CreateSpawnPool() public méthode

public CreateSpawnPool ( string poolName, GameObject owner ) : SpawnPool
poolName string
owner UnityEngine.GameObject
Résultat SpawnPool

DestroyAllSpawnPool() public méthode

public DestroyAllSpawnPool ( ) : void
Résultat void

DestroySpawnPool() public méthode

public DestroySpawnPool ( string poolName ) : bool
poolName string
Résultat bool

Instance() public static méthode

public static Instance ( ) : SimplePoolManager
Résultat SimplePoolManager

RemoveOnCreatedDelegate() public méthode

public RemoveOnCreatedDelegate ( string poolName, OnCreatedDelegate createdDelegate ) : void
poolName string
createdDelegate OnCreatedDelegate
Résultat void