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