Entries from 2016-04-11 to 1 day

【C#】デリゲート(delegate) 使用例 第二弾

ufcpp.net using UnityEngine; using System.Collections; namespace Test { delegate void SomeDelegate(int a); class DelegateTest { public void Main() { SomeDelegate a = new SomeDelegate(A); a(256); } static void A(int n) { Debug.Log("delegate…

【C#】 Dictionary 使用例

qiita.comexample 1 { public class TestClass : MonoBehaviour { Dictionary<int, string> dic = new Dictionary<int, string>() { { 0, "today's weather is nice!" }, { 1, "today's weather is so so!" }, { 2, "today's weather is really nice!" }, }; void Start() { foreach(in</int,></int,>…