摘要:
using UnityEngine;using System.Collections; //单例模式 public class Singleton<T> where T : class, new(){ protected static T _instance = null; public stati
阅读全文
posted @ 2016-08-18 19:59
tianjiuwan
阅读(124)
推荐(0)
编辑
摘要:
using UnityEngine;using System.Collections;using System.Collections.Generic; public class MessageCenter : Singleton<MessageCenter>{ private Dictionary
阅读全文
posted @ 2016-08-18 19:58
tianjiuwan
阅读(249)
推荐(0)
编辑
摘要:
using UnityEngine;using System.Collections;using System.Collections.Generic;using System;/* 消息体 直接遍历 key访问 message[key] send() remove() add() 构造函数参数=》
阅读全文
posted @ 2016-08-18 19:57
tianjiuwan
阅读(227)
推荐(0)
编辑
摘要:
using UnityEngine;using System.Collections;using System.Collections.Generic; public class UIManager : Singleton<UIManager>{ //UI gameobjects public Di
阅读全文
posted @ 2016-08-18 19:56
tianjiuwan
阅读(220)
推荐(0)
编辑
摘要:
using UnityEngine;using System.Collections; public abstract class BasePanel : MonoBehaviour{ //panel State protected E_PanelState _panelState; public
阅读全文
posted @ 2016-08-18 19:55
tianjiuwan
阅读(209)
推荐(0)
编辑
摘要:
using UnityEngine;using System.Collections; public abstract class BaseUI : MonoBehaviour{ //缓存 gameobject 和 transform private GameObject _cacheGameObj
阅读全文
posted @ 2016-08-18 19:53
tianjiuwan
阅读(270)
推荐(0)
编辑
摘要:
Shader "Custom/CullImage" {Properties{[PerRendererData] _MainTex("Sprite Texture", 2D) = "white" {}_Color("Tint", Color) = (1,1,1,1)_StencilComp("Sten
阅读全文
posted @ 2016-08-18 19:50
tianjiuwan
阅读(1583)
推荐(0)
编辑
摘要:
Shader "Custom/UVanim" {Properties{_Color("Color", Color) = (1,1,1,1)_MainTex("Albedo (RGB)", 2D) = "white" {}_Glossiness("Smoothness", Range(0,1)) =
阅读全文
posted @ 2016-08-18 19:49
tianjiuwan
阅读(188)
推荐(0)
编辑