Esempio n. 1
0
    private void RechargeSpores(bool recharging)
    {
        if (playerMover == null)
        {
            playerMover = GameObject.FindWithTag("Player").GetComponent <PlayerMover>();
        }

        if (recharging)
        {
            playerMover.GetComponentInChildren <WaitForSpores>().Event_DipAndWait(transform);
        }
        else
        {
            playerMover.GetComponentInChildren <WaitForSpores>().EndWait();
        }
    }
Esempio n. 2
0
    // ══════════════════════════════════════════════════════════════ METHODS ════
    void Awake()
    {
        spacing = 2f;

        m_playerMover   = Object.FindObjectOfType <PlayerMover> ().GetComponent <PlayerMover> ();
        m_playerCompass = m_playerMover.GetComponentInChildren <PlayerCompass> ();
        FillNodeList();

        m_goalNode = FindGoalNode();
    }