23 lines
455 B
C#
23 lines
455 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
[CreateAssetMenu(menuName = "MiniGame/GearModel")]
|
|
public class GearModel : ScriptableObject
|
|
{
|
|
public float radius;
|
|
|
|
public int id;
|
|
|
|
public string spriteName;
|
|
|
|
/// <summary>
|
|
/// 读取齿轮图片
|
|
/// </summary>
|
|
/// <returns>齿轮Sprite</returns>
|
|
public Sprite getSprite()
|
|
{
|
|
return Resources.Load<Sprite>(spriteName);
|
|
}
|
|
}
|