您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
47 行
1.8 KiB
47 行
1.8 KiB
using UnityEngine;
|
|
|
|
namespace Unity.Multiplayer.Samples.BossRoom
|
|
{
|
|
/// <summary>
|
|
/// Data representation of a Character, containing such things as its starting HP and Mana, and what attacks it can do.
|
|
/// </summary>
|
|
[CreateAssetMenu(menuName = "GameData/CharacterClass", order = 1)]
|
|
public class CharacterClass : ScriptableObject
|
|
{
|
|
[Tooltip("which character this data represents")]
|
|
public CharacterTypeEnum CharacterType;
|
|
|
|
[Tooltip("skill1 is usually the character's default attack")]
|
|
public ActionType Skill1;
|
|
|
|
[Tooltip("skill2 is usually the character's secondary attack")]
|
|
public ActionType Skill2;
|
|
|
|
[Tooltip("skill3 is usually the character's unique or special attack")]
|
|
public ActionType Skill3;
|
|
|
|
[Tooltip("Starting HP of this character class")]
|
|
public IntVariable BaseHP;
|
|
|
|
[Tooltip("Starting Mana of this character class")]
|
|
public int BaseMana;
|
|
|
|
[Tooltip("Base movement speed of this character class (in meters/sec)")]
|
|
public float Speed;
|
|
|
|
[Tooltip("Set to true if this represents an NPC, as opposed to a player.")]
|
|
public bool IsNpc;
|
|
|
|
[Tooltip("For NPCs, this will be used as the aggro radius at which enemies wake up and attack the player")]
|
|
public float DetectRange;
|
|
|
|
[Tooltip("For players, this is the displayed \"class name\". (Not used for monsters)")]
|
|
public string DisplayedName;
|
|
|
|
[Tooltip("For players, this is the class banner (when active). (Not used for monsters)")]
|
|
public Sprite ClassBannerLit;
|
|
|
|
[Tooltip("For players, this is the class banner (when inactive). (Not used for monsters)")]
|
|
public Sprite ClassBannerUnlit;
|
|
}
|
|
}
|