Firstborn/Assets/Scripts/AvatarFilePrefab.cs

22 lines
538 B
C#
Raw Normal View History

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
namespace RPGCreationKit
{
public class AvatarFilePrefab : MonoBehaviour
{
[SerializeField] public TextMeshProUGUI Name;
[SerializeField] public TextMeshProUGUI Sex;
[SerializeField] public TextMeshProUGUI Race;
[SerializeField] public string FilePath;
[SerializeField] public LoadSaveActors LSAGO;
public void LoadThisActor() {
LSAGO.LoadAvatar(FilePath);
}
}
}