游戏蛮牛学习群(纯技术交流,不闲聊):539178957
游戏蛮牛 手机端
开启辅助访问
 找回密码
 注册帐号

扫一扫,访问微社区

首页   >   博客   >  UnityTerminator
UnityTerminator 个人分类:Unity-开发技巧 11 2018-7-18 11:02

csharpcode: using UnityEngine; using System.Collections; public static class FunctionLibrary : object { public delegate void myDelegate(); public delegate void myDelegateInt(int i); //Moves a menu element by the received ammount in time //通过接收到的文件来移动菜单元 ...

UnityTerminator 个人分类:Unity-开发技巧 27 2018-7-18 10:25

csharpcode: using UnityEngine; using System.Collections; public class SetRenderingLayer : MonoBehaviour { public string sortingLayer; //分类层 public int sortingOrder; //排序顺序 void Start() { this.GetComponentRenderer().sortingLayerNa ...

UnityTerminator 个人分类:MMO游戏设计框架 106 2018-7-9 20:37

csharpcode: using System.Collections; using System.Collections.Generic; using UnityEngine; public class SkillRange { /// summary /// 扇形范围判定 /// /summary /// returnsctrue/c, if range was curved, cfalse/c otherwise./returns /// param name="self"Player./par ...

UnityTerminator 个人分类:MMO游戏设计框架 281 2018-7-5 20:15

csharpcode: using System; using System.Collections.Generic; using UnityEngine; /// summary /// 所有界面的基类 /// /summary public abstract class BaseWnd { protected Transform _transform; /// summary /// 打开窗口 /// /summary /// param name="canvas" ...

UnityTerminator 个人分类:MMO游戏设计框架 198 2018-7-5 16:41

csharpcode: using UnityEngine; using System.Collections.Generic; public class StateFunc { public delegate void EnterFunc(object param); public delegate void ExitFunc(); public delegate void UpdateFunc(float dt); public EnterFunc enterFunc; public ExitFunc exit ...

UnityTerminator 个人分类:MMO游戏设计框架 180 2018-7-5 11:00

csharpcode: using System; using System.Collections.Generic; using UnityEngine; public class Timer { /// summary /// 延迟时间 /// /summary private float _delayTime; /// summary /// 已经过去的时间 /// /summary private float _elapsedTime; ...

UnityTerminator 个人分类:MMO游戏设计框架 128 2018-7-5 10:40

csharpcode: using System; using System.Collections.Generic; public class SingletonT where T : class, new() { private static T _instance; public static T instance { get { if(_instance == null) { _instance = new T( ...

UnityTerminator 个人分类:MMO游戏设计框架 166 2018-7-5 10:17

csharpcode: using System; using System.Collections.Generic; using UnityEngine; public class Pool { /// summary /// 创建一个列表容器用来保存预制体对象 /// /summary private ListGameObject _avaliables = new ListGameObject(); /// summary /// 生成对象 ...

关闭

站长推荐 上一条 /1 下一条

返回顶部