您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
26 行
711 B
26 行
711 B
using System;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(fileName = "HeroType", menuName = "FPS Sample/Hero/HeroType")]
|
|
public class HeroTypeAsset : ScriptableObject
|
|
{
|
|
[Serializable]
|
|
public class ItemEntry
|
|
{
|
|
public ItemTypeDefinition itemType;
|
|
}
|
|
|
|
[Serializable]
|
|
public class SprintCameraSettings
|
|
{
|
|
public float FOVFactor = 0.93f;
|
|
public float FOVInceraetSpeed = 1.0f;
|
|
public float FOVDecreaseSpeed = 0.2f;
|
|
}
|
|
|
|
public float health = 100;
|
|
public SprintCameraSettings sprintCameraSettings = new SprintCameraSettings();
|
|
public CharacterTypeDefinition character;
|
|
public ItemEntry[] items;
|
|
public WeakAssetReference[] abilities;
|
|
}
|