// Start is called before the first frame update void Start() { inventoryVisual = GameObject.FindObjectOfType <InventoryVisual>(); main = Camera.main; movement = GetComponent <Movement>(); raycastPlane = new Plane(Vector3.up, 0f); itemManager = GetComponent <EquippedItemManager>(); }
private void Awake() { if (visual == null) { visual = GetComponentInParent <InventoryVisual>(); } itemImage = GetComponentsInChildren <Image>()[1]; amountText = GetComponentInChildren <Text>(); }