/// <summary> /// Awake this instance. /// </summary> void Awake() { if (instance == null) { instance = this; return; } }
public void CreatePool(string poolName, GameObject prefab) { if (!dic.ContainsKey(poolName)) { FirePool pool = new FirePool(prefab); dic.Add(poolName, pool); } }
void Start() { _instance = this; Setup(typeof(FireController)); }