GDTKStat.RemoveSubscription
Declaration#
public void RemoveSubscription(StatBinding subscribeFlags, SimpleEvent subscriptionCallback)Parameters#
| Name | Description |
|---|---|
| subscribeFlags | Type of binding to use |
| subscriptionCallback | Event subscription to remove |
Description#
Remove a subscription
Usage#
Example
using NullSave.GDTK.Stats;using UnityEngine;
public class Example : MonoBehaviour{
public void ExampleMethod(GDTKStat target, BasicStats owner) { target.RemoveSubscription(StatBinding.Value, ValueChanged); }
private void ValueChanged() { Debug.Log("Value changed"); }}