コード例 #1
0
 void Awake()
 {
     TF     = GameObject.FindGameObjectWithTag("Player").GetComponent <ToggleFlashlight>();
     EODS   = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <EnableOrDisableScripts>();
     SO     = GameObject.FindGameObjectWithTag("Interact").GetComponent <SearchObject>();
     inv    = GameObject.FindGameObjectWithTag("Inventory").GetComponent <Inventory>();
     player = GameObject.FindGameObjectWithTag("Player");
 }
コード例 #2
0
ファイル: SearchObject.cs プロジェクト: Westonini/Dreadworks
 void Awake()
 {
     inv  = GameObject.FindGameObjectWithTag("Inventory").GetComponent <Inventory>();
     EODS = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <EnableOrDisableScripts>();
 }