// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); displayTextScript = GetComponent <ItemDisplayText>(); animChest = GetComponent <Animator>(); playerItemScript = player.GetComponent <ItemPickup>(); }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); playerItemScript = player.GetComponent <ItemPickup>(); displayTextScript = GetComponent <ItemDisplayText>(); itemRB = GetComponent <Rigidbody>(); itemCol = GetComponent <BoxCollider>(); holdObject = GameObject.FindGameObjectWithTag("HoldObject").transform; }
// Start is called before the first frame update void Start() { player = GameObject.FindGameObjectWithTag("Player"); displayTextScript = GetComponent <ItemDisplayText>(); leverAnim = GetComponent <Animator>(); }