void Start() { anim_ = GetComponent <Animator>(); if (GameObject.FindWithTag("GameController") != null) { gm_ = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>(); } else { GetComponent <Collider>().enabled = false; } as_ = GetComponent <AudioSource>(); }
// Use this for initialization void Start() { gm_ = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>(); }
// Use this for initialization void Start() { anim_ = GetComponent <Animator>(); gm_ = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>(); as_ = GetComponent <AudioSource>(); }