// Use this for initialization void Start() { world = GameObject.Find("wrldctrl").GetComponent <worldgenerator>(); inv = GameObject.Find("wrldctrl").GetComponent <Inventory>(); list = GameObject.Find("wrldctrl").GetComponent <Itemlist>(); bag = new Inventory.bag(); overlay = GameObject.Find("wrldctrl").GetComponent <GUIoverlay>(); progress = false; initInventory(); }
// Use this for initialization void Start() { world = GameObject.Find("wrldctrl").GetComponent<worldgenerator>(); inv = GameObject.Find("wrldctrl").GetComponent<Inventory>(); list = GameObject.Find("wrldctrl").GetComponent<Itemlist>(); bag = new Inventory.bag(); overlay = GameObject.Find("wrldctrl").GetComponent<GUIoverlay>(); progress = false; initInventory(); }