Exemple #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");
 }
Exemple #2
0
 void Awake()
 {
     inv  = GameObject.FindGameObjectWithTag("Inventory").GetComponent <Inventory>();
     EODS = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <EnableOrDisableScripts>();
 }