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