Exemplo 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);
 }
Exemplo 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);
 }
Exemplo n.º 3
0
 public EventMessage(HazardData hazardData)
 {
     HazardData = hazardData;
 }