53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
using Sirenix.OdinInspector;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using TMPro;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Beyond
|
|
{
|
|
public class SignScroll : MonoBehaviour
|
|
{
|
|
public SignObject m_signObject;
|
|
[Title("Stats")]
|
|
public TextMeshProUGUI m_name;
|
|
public TextMeshProUGUI m_number;
|
|
public TextMeshProUGUI m_realm;
|
|
public TextMeshProUGUI m_ability;
|
|
public TextMeshProUGUI m_bonus;
|
|
public TextMeshProUGUI m_maturity;
|
|
public TextMeshProUGUI m_faith;
|
|
public Image m_signImage;
|
|
[Title("Power Description")]
|
|
public TextMeshProUGUI m_powerDescription;
|
|
public TextMeshProUGUI m_buttonPress;
|
|
public TextMeshProUGUI m_buttonHold;
|
|
public Image m_powerImage;
|
|
// Start is called before the first frame update
|
|
[Title("Hidden Story")]
|
|
public TextMeshProUGUI m_story;
|
|
[Button]
|
|
void Populate()
|
|
{
|
|
m_name.text = m_signObject.signName;
|
|
m_number.text = m_signObject.number.ToString();
|
|
m_realm.text = m_signObject.realm.ToString();
|
|
m_ability.text = m_signObject.ability;
|
|
m_bonus.text = m_signObject.BonusToString();
|
|
m_maturity.text = m_signObject.requiredMaturity.ToString();
|
|
m_faith.text = m_signObject.requiredFaith.ToString();
|
|
|
|
}
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
}
|
|
}
|
|
} |