更新,spine和很多优化

This commit is contained in:
FloatGaming
2026-02-24 05:36:08 +08:00
parent 14fb281d6f
commit d5c8966abd
2039 changed files with 348643 additions and 2589 deletions
+31 -1
View File
@@ -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.")]