更新,spine和很多优化
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using Spine.Unity;
|
||||
|
||||
[CreateAssetMenu(fileName = "NewEnemyData", menuName = "SO_Data/EnemyData")]
|
||||
public class EnemyData_SO : ScriptableObject
|
||||
@@ -8,6 +9,35 @@ public class EnemyData_SO : ScriptableObject
|
||||
[Tooltip("Documentation text normalized.")]
|
||||
public string enemyName;
|
||||
public Sprite enemy_Image;
|
||||
|
||||
[Header("Spine Settings")]
|
||||
[Tooltip("Assign the SkeletonDataAsset for the Spine animation here")]
|
||||
public SkeletonDataAsset skeletonDataAsset;
|
||||
[SerializeField] private float xOffset = 0f;
|
||||
[SerializeField] private float yOffset = -400f;
|
||||
[SerializeField] private float scaleRatio = 1f;
|
||||
[SerializeField] private bool flipX = false;
|
||||
public float XOffset
|
||||
{
|
||||
get => xOffset;
|
||||
set => xOffset = value;
|
||||
}
|
||||
public float YOffset
|
||||
{
|
||||
get => yOffset;
|
||||
set => yOffset = value;
|
||||
}
|
||||
public float ScaleRatio
|
||||
{
|
||||
get => scaleRatio;
|
||||
set => scaleRatio = value;
|
||||
}
|
||||
public bool FlipX
|
||||
{
|
||||
get => flipX;
|
||||
set => flipX = value;
|
||||
}
|
||||
|
||||
public Sprite enemy_Profile;
|
||||
|
||||
[Tooltip("Documentation text normalized.")]
|
||||
|
||||
Reference in New Issue
Block a user