private void Start() { stormCloud = GetComponent <StormCloudController>(); _windHowl = GetComponent <AudioSource>(); _windHowlMaxVolume = _windHowl.volume; _isStormActive = false; _force.PauseWindForce(); _particleSpawnTimer = 2.0f; _particleSpawnOffset = new Vector3(0.0f, 1.0f, 0.0f); _debrisSpawnTimer = 2.0f; _debrisSpawnOffset = new Vector3(0.0f, 1.0f, 0.0f); _whirlwindSpawnTimer = 2.0f; _whirlwindSpawnOffset = new Vector3(0.0f, -1.0f, 0.0f); }
private void Start() { _windCenter = GameObject.FindGameObjectWithTag("WindCenter"); _storm = _windCenter.GetComponent <Storm>(); _windDirection = _storm.GetComponent <WindDirection>(); _windForce = _storm.GetComponent <WindForce>(); _stormCloud = _storm.stormCloud; _player = GameObject.FindGameObjectWithTag("Player"); _baseMotor = _player.GetComponent <BaseMotor>(); _inGameMenu = GameObject.FindGameObjectWithTag("GameUI").GetComponent <InGameMenu>(); _findIslandOrigins(); _setUpPortals(); _inGameMenu.UpdateText(); Invoke(nameof(_activateCurrentPortal), countdownTilPortalActive); }