Created
November 28, 2016 16:35
-
-
Save baobao/97cfc604c9fd078ff2cd4735202d91b3 to your computer and use it in GitHub Desktop.
注意 : ランタイムエラーというか、Unityはクラッシュします
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using System; | |
public class ActionRuntimeError : MonoBehaviour | |
{ | |
void Start () | |
{ | |
Test (Hoge); | |
} | |
void Test(Action<int> callback) | |
{ | |
callback (0); | |
} | |
void Hoge(int b = 0, string a = null) | |
{ | |
Debug.Log (a); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment