48. カスタムイベントをC#から呼び出す
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using Bolt; //BoltをC#で制御するためのNameSpace
public class TestEvent : MonoBehaviour
{
public GameObject gameController;
// Start is called before the first frame update
void Start()
{
//第一引数 : 呼び出したいイベントを持つオブジェクト
//第二引数:呼び出したいカスタムイベント名
CustomEvent.Trigger(gameController, "ChangeText");
}
}