示例#1
0
 private void OnProjectileDestroyed(ProjectileDestroyedSignal signal)
 {
     signal.projectile.OnDespawned();
     objectPool.Push(signal.projectile);
 }
 private void OnProjectileDestroyedSignal(ProjectileDestroyedSignal signal)
 {
     activeProjectiles.Remove(signal.projectile);
 }