浏览代码

Added event null check on BoolEventChannelSO

/main
Amel Negra 4 年前
当前提交
4ae2cfae
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 3
      UOP1_Project/Assets/Scripts/Events/ScriptableObjects/BoolEventChannelSO.cs

3
UOP1_Project/Assets/Scripts/Events/ScriptableObjects/BoolEventChannelSO.cs


public UnityAction<bool> OnEventRaised;
public void RaiseEvent(bool value)
{
OnEventRaised.Invoke(value);
if (OnEventRaised != null)
OnEventRaised.Invoke(value);
}
}
正在加载...
取消
保存