Esempio n. 1
0
    void Awake()
    {
        // get reference to the component
        brp = GameObject.FindObjectOfType <BRP>();
        if (brp == null)      // if UI Indicator is missing
        {
            Debug.LogError("'BRP' script is missing");
        }

        poole = GameObject.FindObjectOfType <Poole>();
        if (poole == null)      // if gameObject is missing
        {
            Debug.LogError("'Poole' script is missing");
        }

        t = GameManager.gm.collectTime;         //collect timer
    }
Esempio n. 2
0
 void Awake()
 {
     levelManager = GameObject.FindObjectOfType <LevelManager>();
     poole        = GameObject.FindObjectOfType <Poole>();
     _animator    = this.GetComponent <Animator>();
 }