public UIBTInformationNotifier() { if (null == instance) { instance = this; } }
// event handler private void ExtendBT(BehaviorManager.BehaviorTree behaviorTree) { ExtendEffect ef = ScriptableObject.CreateInstance <ExtendEffect>(); if (behaviorTree.AddTask(1, 3, ef)) { if (null == UIBTInformationNotifier.instance) { UIBTInformationNotifier notifier = new UIBTInformationNotifier(); } UIBTInformationNotifier.instance.NotifyExtensionInfoChangeEvent(ef.ToString()); Debug.Log("DeserializeBT.OnExtendBT : Extend Success"); } }