void Start() { inventoryS = GameObject.FindObjectOfType <InventoryS>(); sprite = GetComponent <SpriteRenderer>().sprite; }
// Start is called before the first frame update public void Update() { inv = FindObjectOfType <InventoryS>(); }