1
This commit is contained in:
18
Src/Unity/Scripts/Reference/TranslateReference.cs
Normal file
18
Src/Unity/Scripts/Reference/TranslateReference.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BITKit
|
||||
{
|
||||
[Serializable]
|
||||
public sealed class TranslateReference:IReference
|
||||
{
|
||||
[SerializeReference, SubclassSelector] private IReference key;
|
||||
public string Get()
|
||||
{
|
||||
return ScriptableObjectHelper.Get<TranslateSO>().GetAt(key.Value);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user