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