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