all repos — RPG @ 0d2b7dd3aa83d4e0ad258b02569c7e84be40b803

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

Assets/Scripts/Utility/ActionButton.cs (view raw)

 1using System.Collections;
 2using System.Collections.Generic;
 3using UnityEngine;
 4using UnityEngine.UI;
 5
 6[RequireComponent(typeof(Button))]
 7public class ActionButton : MonoBehaviour
 8{
 9
10    private string description;
11
12    public void setDescription(string desc)
13    {
14        description = desc;
15    }
16    public string getDescription()
17    {
18        return description;
19    }
20}