Пример #1
0
        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;
            }
        }
Пример #2
0
    public void CheckPassword()
    {
        string correctPassword = "******";
        string inputPassword   = "";

        foreach (Text text in texts)
        {
            inputPassword += text.text;
        }
        if (correctPassword == inputPassword)
        {
            OpenAction.Invoke();
        }
    }