Beispiel #1
0
 private void SetupAmmoPickupsGameObject()
 {
     _ammoPickupsGameObject            = new GameObject();
     _ammoPickupsBoxCollider           = _ammoPickupsGameObject.AddComponent <BoxCollider2D>();
     _ammoPickupsBoxCollider.isTrigger = true;
     _ammoPickups = _ammoPickupsGameObject.AddComponent <AmmoPickups>();
     _memoryPool  = Substitute.For <IMemoryPool>();
     _ammoPickups.OnSpawned(_memoryPool);
 }