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