Esempio n. 1
0
 public SkeletonManager(HazardData skeleton, Player[] players, ShipManager shipManager)
 {
     _skeletonData   = skeleton;
     _players        = players;
     _enemyCondition = shipManager.GetShip(ShipType.Enemy);
     _shipCondition  = shipManager.GetShip(ShipType.Player);
 }
Esempio n. 2
0
 private void Barrage(HazardData data)
 {
     _lastSpawn = SelectPosition();
     GameObject.Instantiate(data.Prefab, _lastSpawn.transform.position, Quaternion.identity);
     _audioPool.PlayAudioEvent(data.Audio);
     _spawnList.Remove(_lastSpawn);
 }
Esempio n. 3
0
 public EventMessage(HazardData hazardData)
 {
     HazardData = hazardData;
 }