baobao
11/28/2016 - 4:35 PM

注意 : ランタイムエラーというか、Unityはクラッシュします

注意 : ランタイムエラーというか、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);
    }
}