Beispiel #1
0
 public static void On_PrefabPoolSpawnNew(PrefabPool prefabPool)
 {
     GameStats.PoolStat poolStat = GameStats.FindOrCreate(prefabPool);
     poolStat.instantiateCount++;
     GameStats.UpdatePrefabPoolStat(prefabPool, poolStat);
 }
Beispiel #2
0
 public static void On_PrefabPoolDespawn(PrefabPool prefabPool, Transform instance)
 {
     GameStats.PoolStat poolStat = GameStats.FindOrCreate(prefabPool);
     poolStat.despawnCount++;
     GameStats.UpdatePrefabPoolStat(prefabPool, poolStat);
 }