void Start() { gui = (Gui)GameObject.FindObjectOfType(typeof(Gui)); playerMove = (PlayerMove)GameObject.FindObjectOfType(typeof(PlayerMove)); inventory = (Inventory)GameObject.FindObjectOfType(typeof(Inventory)); itemStyle.normal.background = inventory.BuscarTextura("normal","emptyItem2"); actionStyle.normal.background = inventory.BuscarTextura("normal","btnBase"); shootStyle.normal.background = inventory.BuscarTextura("normal","btnShoot"); derStyle.normal.background = inventory.BuscarTextura("normal","btnRight"); izqStyle.normal.background = inventory.BuscarTextura("normal","btnLeft"); }
void Start() { gui = (Gui)GameObject.FindObjectOfType(typeof(Gui)); inventory = (Inventory)GameObject.FindObjectOfType(typeof(Inventory)); playerMove = (PlayerMove)GameObject.FindObjectOfType(typeof(PlayerMove)); myStyle.normal.background = inventory.BuscarTextura("normal","btnPausa"); }