public void Invoke() { var target = (T?)m_target_ref.Target; if (target != null) { m_open_action.Invoke(target); } else if (m_unregister != null) { m_unregister(Handler); m_unregister = null; } }
public void CheckPassword() { string correctPassword = "******"; string inputPassword = ""; foreach (Text text in texts) { inputPassword += text.text; } if (correctPassword == inputPassword) { OpenAction.Invoke(); } }