private void Awake() { doortransform = GetComponent <Transform>(); item = GameObject.FindGameObjectWithTag("Key").GetComponent <Item_Ctrl>(); item1 = GameObject.FindGameObjectWithTag("Key1").GetComponent <Item_Ctrl>(); item2 = GameObject.FindGameObjectWithTag("Key2").GetComponent <Item_Ctrl>(); item_management = GameObject.FindGameObjectWithTag("Manager").GetComponent <Item_Management>(); }
private void Awake() { lookatbase = GetComponent <VRLookAtObjectBase>(); item = GameObject.FindWithTag("Manager").GetComponent <Item_Management>(); }