コード例 #1
0
ファイル: Torch.cs プロジェクト: jkvnguyen/NorthBear
 void Start()
 {
     anim_ = GetComponent <Animator>();
     if (GameObject.FindWithTag("GameController") != null)
     {
         gm_ = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>();
     }
     else
     {
         GetComponent <Collider>().enabled = false;
     }
     as_ = GetComponent <AudioSource>();
 }
コード例 #2
0
ファイル: Boundary.cs プロジェクト: jkvnguyen/NorthBear
 // Use this for initialization
 void Start()
 {
     gm_ = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>();
 }
コード例 #3
0
ファイル: Button.cs プロジェクト: Genises/Phobophilia
 // Use this for initialization
 void Start()
 {
     anim_ = GetComponent <Animator>();
     gm_   = GameObject.FindWithTag("GameController").GetComponent <ClaustrophobiaGM>();
     as_   = GetComponent <AudioSource>();
 }