用C#实现竖列转盘游戏

 本来以为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;

 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值