您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
16 行
402 B
16 行
402 B
using UnityEngine.Events;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// This class is used for Events that have one Int argument (Example: Achievement Unlock Event)
|
|
/// </summary>
|
|
|
|
[CreateAssetMenu(fileName = "IntGameEvent", menuName = "Game Event/Int")]
|
|
public class IntGameEvent : ScriptableObject
|
|
{
|
|
public UnityAction<int> eventRaised;
|
|
public void Raise(int value)
|
|
{
|
|
eventRaised.Invoke(value);
|
|
}
|
|
}
|