Csharp多线程

using System; using System.Threading; namespace Lesson18_多线程 { class Program { static bool isRuning = true; static object ob


Unity_继承mono单例类

using System.Collections; using System.Collections.Generic; using UnityEngine; public class BaseManager<T> where T:class,new() { private static


Csharp特性

#define Fun using System; using System.Diagnostics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices; namespace Lesson21_特


Csharp反射

using System; using System.Reflection; using System.Threading; namespace Lesson20_反射 { #region 知识点回顾 //编译器是一种翻译程序 //它用于将源语言程序翻译为目标语言程序


斐波那契数列 递归写法

//递归写法 public static int Fibonacci(int n) { //这么写得了解问题的最简形式的样子 并且函数本身的调用就是最上层分支 if (n < 2) { return n == 0


Csharp事件

using System; namespace Lesson13_事件 { #region 知识点一 事件是什么 //事件是基于委托的存在 //事件是委托的安全包裹 //让委托的使用更具有安全性 //事件 是一种特殊的变量类型 #endregion


Csharp笑传之委托

using System; namespace Lesson12_委托 { #region 知识点一 委托是什么 //委托是 函数(方法)的容器 //可以理解为表示函数(方法)的变量类型 //用来 存储、传递函数(方法) //委托的本质是一个类,用来定义函


Unity_动态障碍

using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.AI; public class Lesson64 : MonoBehaviour { priv