/// <summary> /// 当执行管理员登录验证 /// </summary> /// <param name="password">输入的密码</param> protected virtual void OnAdminCheck(string password) { IsAdminMode = MathfToolkit.MD5Encrypt(password) == Password; GUI.changed = true; if (!IsAdminMode) { ShowNotification(new GUIContent("Password is wrong!")); } }
public void AdminCheck(string password) { IsAdminMode = MathfToolkit.MD5Encrypt(password) == Password; _isRelease = false; GUI.changed = true; if (!IsAdminMode) { ShowNotification(new GUIContent("Password is wrong!")); } }