19 lines
324 B
C#
19 lines
324 B
C#
|
using UnityEngine;
|
||
|
|
||
|
namespace RoR2;
|
||
|
|
||
|
public class GenericDisplayNameProvider : MonoBehaviour, IDisplayNameProvider
|
||
|
{
|
||
|
public string displayToken;
|
||
|
|
||
|
public string GetDisplayName()
|
||
|
{
|
||
|
return Language.GetString(displayToken);
|
||
|
}
|
||
|
|
||
|
public void SetDisplayToken(string newDisplayToken)
|
||
|
{
|
||
|
displayToken = newDisplayToken;
|
||
|
}
|
||
|
}
|