yRDQ[GW ..
553:ΌOΝJΜΰΜΕ·B
15/07/26 18:14:10.17 D3ATScL/.net
>>545
C#ΜSystem.ActionΖ©System.FuncΜzρπg€ΖΗ’ζ
ActionΝvoidΘΦAFuncΝίθlΜ^πwθ΅Δg€
// actionΜzρ
private System.Action<string> [] actionList;
// actionΦΦΜέθ
void Start () {
actionList = new System.Action<string>[10];
actionList[0] = Action1;
actionList[1] = Action2;
// more actions
}
// iΜlΕ½©πΐs
void ExecuteAction(int i)
{
actionList[i](i.ToString());
}
void Action1(string val)
{
Debug.Log("Action1:"+val);
}
void Action2(string val)
{
Debug.Log("Action2:"+val);
}
// and many funcs
y[W±«π\¦1π\¦ΕVX\¦XbhΜυήXκbθΜj
[X¨ά©ΉXg₯IvVπ\¦ΙΒΤ΅2ch
3753ϊOΙXV/302 KB
S:undef