void Start() { mBackgroundImage = GetComponentInChildren <RawImage>(); mBackgroundImage.color = _mDesiredColour; mItemDisplay = GetComponentInChildren <ItemIconDisplay>(); mItemDisplay.mCurrentItem = _mDesiredItem; }
void Start() { mItemDisplay = GetComponent <ItemIconDisplay>(); mItemDisplay.mCurrentItem = new ItemStack(0); if (Main == null) { Main = this; } else { Debug.LogWarning("Discoverd multiple inventory cursors"); } }