add project files
This commit is contained in:
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
using OHM.UnityToolkit.Localization;
|
||||
using UnityEngine.Serialization;
|
||||
|
||||
public class SizePrefabUI : MonoBehaviour
|
||||
{
|
||||
[SerializeField]
|
||||
[FormerlySerializedAs("locText")]
|
||||
private LocalizedText _locText;
|
||||
|
||||
public void SetText(string locKey, Color color)
|
||||
{
|
||||
_locText.ChangeKey(locKey);
|
||||
_locText.text.tmTexts[0].color = color;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user