摘要:
1.用Delegate 和 Event 来定义一个通用类来处理事件 (观察者模式) using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; using U 阅读全文
摘要:
数字瘦身,最后输出一位数,例如:75 7+5=12 1+2=3 最终答案 3 using System; public class Solution { private int renum; public int diet(int in_num) { renum = 0; while (in_num 阅读全文
摘要:
ButtonAddListener监听按钮点击事件 using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.Events; public class ButtonAddListener: 阅读全文
摘要:
unity文件保存读取PlayerPrefs.SetInt And PlayerPrefs.GetInt using UnityEngine; using System.Collections; using UnityEngine.UI; using UnityEngine.SceneManagem 阅读全文
摘要:
枚举类型与字符串添加字典互转ConvertEnumToString using UnityEngine; using System.Collections; using UnityEngine.UI; using Enums; public class startScene : MonoBehavi 阅读全文