40 lines
992 B
C#
40 lines
992 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace AibisDream
|
|
{
|
|
[Serializable]
|
|
public class GearSysTemLevelData
|
|
{
|
|
public GearLevelData[] gearLevelDataArray;
|
|
public ShaftLevelData[] shaftLevelDataArray;
|
|
}
|
|
|
|
[Serializable]
|
|
public class GearLevelData
|
|
{
|
|
public const string GearPicPath = "Art/Fix/Stone";
|
|
|
|
public Vector3 gearPos;
|
|
public float radius;
|
|
public string gearPic;
|
|
|
|
public Sprite GearSprite => Resources.Load<Sprite>($"{GearPicPath}/{gearPic}");
|
|
}
|
|
|
|
[Serializable]
|
|
public class ShaftLevelData
|
|
{
|
|
public int id;
|
|
public ShaftType shaftType;
|
|
// 初始角速度(仅Driver有)
|
|
public float initialSpeed;
|
|
// 目标角速度(仅Target有)
|
|
public float targetSpeed;
|
|
|
|
// 初始齿轮情况(Driver, Target, Constant必须有,Pluggable不一定)
|
|
public bool hasChildGear;
|
|
public float radius;
|
|
public string gearPic;
|
|
}
|
|
} |