Skill.GetPrice C# (CSharp) Method

GetPrice() public method

public GetPrice ( ) : int
return int
    public int GetPrice()
    {
        //Return the price of the skill, so it can be purchased at the skill store.
        return price;
    }

Usage Example

示例#1
0
        private void SetupPrice()
        {
            var price = Skill.GetPrice().FirstOrDefault();

            if (price != null)
            {
                this.priceIcon.sprite = Resources.Load <Sprite>(price.Icon);
                UpdatePrice();
            }
            else
            {
                this.priceText.gameObject.SetActive(false);
                this.priceIcon.gameObject.SetActive(false);
            }
        }
All Usage Examples Of Skill::GetPrice