这是第一个 Unity 开放项目的repo,是 Unity 和社区合作创建的一个小型开源游戏演示,第一款游戏是一款名为 Chop Chop 的动作冒险游戏。
您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 

21 行
752 B

using UnityEngine;
[CreateAssetMenu(fileName = "GetHitEffectConfig", menuName = "EntityConfig/Get Hit Effect Config")]
public class GetHitEffectConfigSO : ScriptableObject
{
[Tooltip("Flashing effect color applied when getting hit.")]
[SerializeField]
private Color _getHitFlashingColor = default;
[Tooltip("Flashing effect duration (in seconds).")]
[SerializeField]
private float _getHitFlashingDuration = 0.5f;
[Tooltip("Flashing effect speed (number of flashings during the duration).")]
[SerializeField]
private float _getHitFlashingSpeed = 3.0f;
public Color GetHitFlashingColor => _getHitFlashingColor;
public float GetHitFlashingDuration => _getHitFlashingDuration;
public float GetHitFlashingSpeed => _getHitFlashingSpeed;
}