private void Start() { //hitta inventory scriptet inventory = GameObject.Find("InventoryMainPiece").GetComponent <InventoryOld>(); }
private void Start() { inventory = this.GetComponent <InventoryOld>(); screenCenter = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, 3f)); }