Example #1
0
    //Perform this method if the player uses a portal.
    public void SignalPlayerTeleportation(string portalName)
    {
        _checkClearedChapter(portalName);

        _setNextPortalIndex(portalName);
        _teleportPlayer();
        _updateWind();
        _inGameMenu.UpdateText();

        StartCoroutine(_fullRound());

        currentIslandIndex = _nextIslandIndex;
    }
Example #2
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);
    }