Exemple #1
0
    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);
    }