本来以为CSDN可以传本地视频= =结果也不行,只能转gif了,今天从博客园搬家
之前用lua撸了一个转盘,为了方便以后用 ,今天撸一个C#版的转盘,主体思路一致,便于展示用U3D拼了一版简易UI
灵魂UI来了!
代码来了!
using UnityEngine;
using UnityEngine.UI;
public class NewBehaviourScript : MonoBehaviour
{
private int col = 5;
private int row = 5;
public Transform[] Col0;
public Transform[] Col1;
public Transform[] Col2;
public Transform[] Col3;
public Transform[] Col4;
public Transform[] ColPos;
public int Speed;
private int[] colState = new int[5]{2,2,2,2,2}; //1旋转 2停止 3即将停止
private int[] colDelay = new int[5];
private int startPos = 33;
private int endPos = -30;
private Transform[][] Items;
public Button Btn_Start;
public Button Btn_Stop;
private Object[] list_Sprites;