// Use this for initialization void Start() { path = "Assets/UnityChan/Inventory/Images/gridIcon.png"; theInventory = GetComponent <inventoryScript>(); items = GetComponent <itemsScript>(); uChanControl = GetComponent <uChanController>(); gridIndexValue = 0; indexNewItem = -1; loadInventory(); }
// Use this for initialization void Start() { spawned = false; gridIndexValue = -1; gridLineValue = 5; maxIndexGrids = grids.Length - 1; maxColumnGrid = (grids.Length / 5) - 1; style = new GUIStyle(); style.normal.textColor = Color.white; lanternGrid = new GUIContent(); styleLife = new GUIStyle(); styleLife.font = (Font)Resources.Load("Fonts/BIONIC"); styleLife.normal.textColor = Color.green; styleLife.alignment = TextAnchor.LowerRight; windowPosition = new Vector2(0, 0); addingNewItem = GetComponent <inventoryAddItem>(); items = GetComponent <itemsScript>(); uChanControl = GetComponent <uChanController>(); }
// Use this for initialization void Start() { items = GetComponent <itemsScript>(); uChanControl = GetComponent <uChanController>(); addingNewItem = GetComponent <inventoryAddItem>(); }