您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
30 行
764 B
30 行
764 B
using System;
|
|
using UnityEditor;
|
|
using UnityEngine;
|
|
using UnityEngine.Serialization;
|
|
|
|
[CreateAssetMenu(fileName = "HeroType", menuName = "A2/Hero/HeroType")]
|
|
public class HeroTypeAsset : ScriptableObject
|
|
{
|
|
[Serializable]
|
|
public class ItemEntry
|
|
{
|
|
public WeakAssetReference asset;
|
|
public byte slot;
|
|
}
|
|
|
|
[Serializable]
|
|
public struct SprintCameraSettings
|
|
{
|
|
public float FOVFactor;
|
|
public float FOVInceraetSpeed;
|
|
public float FOVDecreaseSpeed;
|
|
}
|
|
|
|
public ItemEntry[] items = new ItemEntry[0];
|
|
|
|
public WeakAssetReference characterPrefab;
|
|
public float health = 100;
|
|
public SprintCameraSettings sprintCameraSettings = new SprintCameraSettings();
|
|
public float eyeHeight = 1.8f;
|
|
}
|