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