예제 #1
0
        /// <summary>
        /// Sets the information on the information panel based on the information set on both the info and assets.
        /// </summary>
        public void SetInfoPanel(WeaponType type, string universalID)
        {
            WeaponAsset asset = GameManager.Instance.weaponSettings.RetrieveFromSettings(type, universalID);

            informationPanel.SetActive(true);
            InformationPanel infoPanel = informationPanel.GetComponent <InformationPanel>();

            infoPanel.SetPanelInfo(asset.name, asset.description, null);
        }
예제 #2
0
        /// <summary>
        /// Sets the information on the information panel based on the information set on both the info and assets.
        /// </summary>
        public void SetInfoPanel(string equipmentID)
        {
            WeaponInfo  info  = weaponServicer.GetWeaponItem(equipmentID);
            WeaponAsset asset = GameManager.Instance.weaponSettings.RetrieveFromSettings(info.weaponType, info.globalID);

            informationPanel.SetActive(true);
            InformationPanel infoPanel = informationPanel.GetComponent <InformationPanel>();

            infoPanel.SetPanelInfo(info.name, asset.description, asset.spriteThumbnail);
        }