
unity
whatthinking
这个作者很懒,什么都没留下…
展开
-
c# unity自学笔记04-变换组件助手类
using UnityEngine; using System.Collections; public class TransformHelper : MonoBehaviour { //查找子物体,找到FindChild 放在这里 递归! public static Transform FindChild(Transform trans, string goName) { Transform child = trans.FindChild(goName); .原创 2021-10-11 11:43:59 · 190 阅读 · 0 评论 -
c# 自学笔记03-游戏对象池_工具类
1原创 2021-10-06 12:26:17 · 205 阅读 · 0 评论 -
c#-自学笔记02-数组工具类基础01,通用的遍历取值排序
using System; using System.Collections.Generic; using System.Text; /// <summary> /// 自己写的Array工具类 /// </summary> static class ArrayHelper {//第二个参数是实例化委托handler,然后在下面调用声明委托handler; static public void OrderBy4<T, TKey>(T[] array, Selec.原创 2021-10-04 17:06:28 · 128 阅读 · 0 评论 -
c# 自学笔记01-泛型
namespace App01OOPtest { class Program { static void Main(string[] args) { var re = My<int>.Max(2,5); var re1 = My<string>.Max("aa","bb"); } } class My<T> where T : ICompar.原创 2021-10-04 17:01:16 · 122 阅读 · 0 评论