
C#
c#
杜明轩-
这个作者很懒,什么都没留下…
展开
-
Unity灯光闪烁
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AlarmLight : MonoBehaviour { public bool alarmOn; public float turnSpeed; private float highIntensity = 2f; private float lowIntensity = 0; pri原创 2022-01-16 21:31:01 · 3436 阅读 · 0 评论 -
多线程模拟网络抢票
using System; using System.Collections; using System.Collections.Generic; using System.Threading; using UnityEngine; public class Thread02 : MonoBehaviour { int sumPiao = 10, huangNiu = 0, num = 0; void Start() { Thread t = new Threa原创 2022-01-14 20:21:22 · 561 阅读 · 0 评论 -
用MVC框架完成UI界面中数据的初始化
public class PlayerModel : MonoBehaviour { #region 1.封装两个界面属性 private string playerName; public string PlayerName { get { return playerName; } set { playerName = value; } }//玩家名称 private int playerLevel;//玩家等级 ..原创 2022-01-05 16:42:04 · 240 阅读 · 0 评论