コード例 #1
0
ファイル: Pickable.cs プロジェクト: benjinettervik/digi2spel
 private void Start()
 {
     //hitta inventory scriptet
     inventory = GameObject.Find("InventoryMainPiece").GetComponent <InventoryOld>();
 }
コード例 #2
0
ファイル: InventoryGUI.cs プロジェクト: WoolMagician/8-Cores
 private void Start()
 {
     inventory    = this.GetComponent <InventoryOld>();
     screenCenter = Camera.main.ScreenToWorldPoint(new Vector3(Screen.width / 2, Screen.height / 2, 3f));
 }