Class ParameterEvent
The type of Unity Event that can pass parameters.
可傳遞參數的 Unity Event 類型。
Inheritance
Namespace: Votanic
Assembly: Votanic.Core.dll
Syntax
[Serializable]
public class ParameterEvent : UnityEvent<Parameter>, ISerializationCallbackReceiver
Methods
AddListener(UnityAction)
Add a no parameter runtime callback as listener.
新增一個不含參數的實時回調函數為監聽器。
AddListener(Ping)
Declaration
public void AddListener(UnityAction unityAction)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Events.UnityAction | unityAction | The Method |
AddListener(UnityAction<Parameter>)
Add a with parameter runtime callback as listener.
新增一個含有參數的實時回調函數為監聽器。
AddListener(Ping)
Declaration
public void AddListener(UnityAction<Parameter> unityAction)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Events.UnityAction<Parameter> | unityAction | The Method |
Invoke(Parameter)
Invoke all unity actions.
呼叫所有 Unity 動作。
Invoke(new Parameter())
Declaration
public void Invoke(Parameter parameter = null)
Parameters
Type | Name | Description |
---|---|---|
Parameter | parameter | Parameter |
RemoveAllListeners()
Remove all the runtime callbacks.
移除所有實時回調函數。
Declaration
public void RemoveAllListeners()
RemoveAllListeners(Boolean, Boolean)
Remove all the runtime callbacks.
移除所有實時回調函數。
Declaration
public void RemoveAllListeners(bool noParamter, bool withParamter)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | noParamter | Remove all no parameter runtime callbacks |
System.Boolean | withParamter | Remove all with parameter runtime callbacks |
RemoveListener(UnityAction)
Remove the last no parameter runtime callback.
移除最新一個不含參數的實時回調函數。
RemoveListener(Ping)
Declaration
public void RemoveListener(UnityAction unityAction)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Events.UnityAction | unityAction | The Method |
RemoveListener(UnityAction<Parameter>)
Remove the last with parameter runtime callback.
移除最新一個含有參數的實時回調函數。
RemoveListener(Ping)
Declaration
public void RemoveListener(UnityAction<Parameter> unityAction)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Events.UnityAction<Parameter> | unityAction | The Method |