李虹霖

 

2015年3月8日

c#单例模式

摘要: using System;using System.Collections.Generic;using System.Text;namespace 单例模式{ class Program { static void Main(string[] args) { ... 阅读全文

posted @ 2015-03-08 12:07 lol霖 阅读(164) 评论(0) 推荐(0) 编辑

单例模式 demo

摘要: // 用单例模式实现自定义颜色类 public class MyColor { private static MyColor _redColor = null; public static MyColor GetRedColor()//获取红色实例 ... 阅读全文

posted @ 2015-03-08 11:50 lol霖 阅读(498) 评论(0) 推荐(0) 编辑

扫雷游戏

摘要: using UnityEngine;using System.Collections;using System.Collections.Generic;//public enum GameState//{// NormalState,// MineState,//}//坐标数据// 这个... 阅读全文

posted @ 2015-03-08 10:49 lol霖 阅读(258) 评论(0) 推荐(0) 编辑

打地鼠Demo

摘要: using UnityEngine;using System.Collections;public enum MoleStates{ NormalState,// 初始状态 UpState,// 钻出来状态 DownState,//钻进去状态 HitState//打击状态}p... 阅读全文

posted @ 2015-03-08 10:37 lol霖 阅读(1096) 评论(0) 推荐(1) 编辑

导航