Skip to content

Instantly share code, notes, and snippets.

@baobao
Created November 28, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save baobao/97cfc604c9fd078ff2cd4735202d91b3 to your computer and use it in GitHub Desktop.
Save baobao/97cfc604c9fd078ff2cd4735202d91b3 to your computer and use it in GitHub Desktop.
注意 : ランタイムエラーというか、Unityはクラッシュします
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