all repos — RPG @ master

Fully functional 3D turn based role playing game coded in C# and base Unity.

Assets/Scripts/Menu/Record.cs (view raw)

 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4
 5[System.Serializable]
 6public class Record
 7{
 8    private string _name;
 9
10    private int _score;
11    public int Score
12    {
13        get
14        {
15            return _score;
16        }
17    }
18    public string Name
19    {
20        get
21        {
22            return _name;
23        }
24    }
25
26    public string ScoreToString()
27    {
28        return _score + "g";
29    }
30
31    public Record(string name, int score)
32    {
33        _name = name;
34        _score = score;
35    }
36
37
38
39}