随笔分类 -  C#

摘要:1 using UnityEngine; 2 using System; 3 using System.Collections; 4 using System.Collections.Generic; 5 using DG.Tweening; 6 using System.Linq; ... 阅读全文
posted @ 2014-12-22 21:10 灵魂重新 阅读(175) 评论(0) 推荐(0)
摘要:I'm trying to create a 2D array to store some values that don't change like this.const int[,] hiveIndices = new int[,] {{200,362},{250,370},{213,410} ... 阅读全文
posted @ 2014-12-18 00:46 灵魂重新 阅读(1399) 评论(0) 推荐(0)
摘要:Oftentimes you’ll find yourself using classes you can’t modify. Whether they’re basic data types or part of an existing framework, you’re stuck with t... 阅读全文
posted @ 2014-10-14 23:11 灵魂重新 阅读(385) 评论(0) 推荐(0)
摘要:Implicitly Typed Local VariablesIt happens time and time again: I’ll be at a game jam, mentoring students, or just showing a friend some Unity C# code... 阅读全文
posted @ 2014-10-14 20:05 灵魂重新 阅读(406) 评论(0) 推荐(0)
摘要:一、对于引用类型你了解多少? string a = "1"; string b = a; a = "2"; print(b); GameObject a = new GameObject("1");//game object 有一个 name 构造 GameObject ... 阅读全文
posted @ 2014-09-16 18:57 灵魂重新 阅读(224) 评论(0) 推荐(0)
摘要:一、Application.PresistentDataPath注意最后面是没有/的 public static string PresistentDataPathForEditor = "C:/Users/Administrator/AppData/LocalLow/DefaultC... 阅读全文
posted @ 2014-08-21 14:36 灵魂重新 阅读(627) 评论(0) 推荐(0)