Ejemplo n.º 1
0
        public void ShowAccountPanel()
        {
            var profile = MainGame.Inst.Profile;

            Settings.Close();

            if (profile.AccountType == AccountType.Local)
            {
                CreateUserAndShowAnonPanel().EnsureNoError();
            }
            else if (profile.AccountType == AccountType.Anonymous)
            {
                AddModal(new AnonymousAccountPanel(), true);
            }
            else if (profile.AccountType == AccountType.Full)
            {
                AddModal(new FullAccountPanel(), true);
            }
        }