Пример #1
0
    public void OnSaveBuildInfo(BuildInfo buildInfo)
    {
        if (lastSaveBuildInfo == null || !lastSaveBuildInfo.EqualsTo(buildInfo))
        {
            BuildRequest request = new BuildRequest(Client.Instance.Proxy.ClientID, buildInfo, CurrentGameMode == GameMode.Single, UIManager.Instance.GetBaseUIForm <StartMenuPanel>().state == StartMenuPanel.States.Show_Single_HasStory);
            Client.Instance.Proxy.SendMessage(request);

            NoticeManager.Instance.ShowInfoPanelCenter(LanguageManager.Instance.GetText("SelectBuildManagerBuild_YourDeckIsSaved"), 0f, 0.5f);
            lastSaveBuildInfo         = buildInfo.Clone();
            lastSaveBuildInfo.BuildID = buildInfo.BuildID;
        }
    }