Beispiel #1
0
    void Start()
    {
        mBackgroundImage       = GetComponentInChildren <RawImage>();
        mBackgroundImage.color = _mDesiredColour;

        mItemDisplay = GetComponentInChildren <ItemIconDisplay>();
        mItemDisplay.mCurrentItem = _mDesiredItem;
    }
Beispiel #2
0
    void Start()
    {
        mItemDisplay = GetComponent <ItemIconDisplay>();
        mItemDisplay.mCurrentItem = new ItemStack(0);

        if (Main == null)
        {
            Main = this;
        }
        else
        {
            Debug.LogWarning("Discoverd multiple inventory cursors");
        }
    }