public void TakeCheck(Checker checker) { OnChecked.Invoke(checker); if (m_DestroyAfterChecked) { Destroy(gameObject); } }
public override BaseDialogNode GetNext(int number = 0) { NodePort port = GetOutputPort("success"); conditions.Invoke(); if (!conditions.Check()) { port = GetOutputPort("fail"); } return(port.Connection.node as BaseDialogNode); }