private void Awake() { pools = new AssetPool(); if (torpedo) { pools.CreatePool(TORPEDO_POOL, torpedo.gameObject); } foreach (var enemy in enemies) { pools.CreatePool(enemy.GroupId, enemy.gameObject); } loader = new AsyncLoader(this); }