public override void VOnDestroy() { Cv_ClickAreaNode clickAreaNode = this.ClickAreaNode; Cv_Event newEvent = new Cv_Event_DestroyClickableComponent(Owner.ID, clickAreaNode, this); Cv_EventManager.Instance.QueueEvent(newEvent, true); }
public void OnDestroyClickableComponent(Cv_Event eventData) { Cv_Event_DestroyClickableComponent destroyCamera = (Cv_Event_DestroyClickableComponent)eventData; RemoveNode(destroyCamera.ClickAreaNode); }