53 lines
1.5 KiB
C#
53 lines
1.5 KiB
C#
using Sirenix.OdinInspector;
|
|
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Beyond
|
|
{
|
|
[CreateAssetMenu(fileName = "SignObject", menuName = "Beyond/Sign Object", order = 1)]
|
|
public class SignObject : ScriptableObject
|
|
{
|
|
|
|
#region STATS
|
|
[Title("Stats")]
|
|
public enum Realm { Air, Fire, Water, Earth };
|
|
public ItemBonus[] bonuses;
|
|
public Sprite image;
|
|
public string signName;
|
|
public Realm realm;
|
|
public string ability;
|
|
public int number;
|
|
public Color color = Color.white;
|
|
public AudioClip audio;
|
|
public int requiredMaturity = 1;
|
|
public int requiredFaith = 1;
|
|
#endregion
|
|
[Title("Power Description")]
|
|
public Sprite powerImage;
|
|
public string m_powerDescription;
|
|
public string m_pressButtonAction;
|
|
public string m_holdButtonAction;
|
|
[Title("Hidden mystery")]
|
|
public string m_mystery;
|
|
public string BonusToString()
|
|
{
|
|
string res;
|
|
if (bonuses != null && bonuses.Length > 0)
|
|
{
|
|
res = bonuses[0].ToString();
|
|
for (int i=1; i<bonuses.Length; i++)
|
|
{
|
|
res += ", " + bonuses[i].ToString();
|
|
}
|
|
}
|
|
else
|
|
{
|
|
res = "";
|
|
}
|
|
return res;
|
|
}
|
|
}
|
|
} |