Esempio n. 1
0
 private void Awake()
 {
     for (int i = 0; i < pools.Length; i++)
     {
         for (int j = 0; j < pools[i].StartCount; j++)
         {
             DamageablePoolHandler.AddToPool(CharacterFactory.Create(pools[i].CharacterToPool.Prefab, pools[i]) as IDamageable);
         }
     }
 }
Esempio n. 2
0
 private static void FindReceiver(int argsGoInstanceId, float argsValue)
 {
     damageable = DamageablePoolHandler.SearchPool(argsGoInstanceId);
     damageable?.TakeDamage(argsValue);
 }