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