// Start is called before the first frame update void Start() { timer = GameObject.FindWithTag("Timer"); if (timer != null) { st = timer.GetComponent <SurvivalTime>(); } sceneName = SceneManager.GetActiveScene(); AudioSource[] audio = GetComponents <AudioSource>(); explodeSound = audio[0]; health = 100; houseHealth = 100; }
public MobsSpawningHandler(SurvivalMobs mobsListRef, SurvivalPlayers playersListRef, SurvivalTime time) { _survivalMobs = mobsListRef; _survivalPlayers = playersListRef; _survivalTime = time; }