49 lines
1.0 KiB
C#
49 lines
1.0 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using Assets.Scripts.Classes;
|
|
using Assets.Scripts.Races;
|
|
using Newtonsoft.Json.Linq;
|
|
using UnityEngine.InputSystem;
|
|
|
|
namespace Assets.Scripts.Player
|
|
{
|
|
public class PlayerStat
|
|
{
|
|
string text;
|
|
int amount;
|
|
string tooltip;
|
|
|
|
public PlayerStat(string text, int amount, string tooltip){
|
|
this.text = text;
|
|
this.amount = amount;
|
|
this.tooltip = tooltip;
|
|
}
|
|
|
|
public string getTooltip(){
|
|
return this.tooltip;
|
|
}
|
|
|
|
public string getText(){
|
|
return this.text;
|
|
}
|
|
|
|
public int getAmount(){
|
|
return this.amount;
|
|
}
|
|
|
|
public void changeAmount(int change){
|
|
this.amount = this.amount + change;
|
|
}
|
|
|
|
public void setAmount(int amount){
|
|
this.amount = amount;
|
|
}
|
|
|
|
}
|
|
}
|