// Token: 0x0600D283 RID: 53891 RVA: 0x00397DB4 File Offset: 0x00395FB4
        public void UpdatePlayerResource()
        {
            if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_UpdatePlayerResource_hotfix != null)
            {
                this.m_UpdatePlayerResource_hotfix.call(new object[]
                {
                    this
                });
                return;
            }
            BJLuaObjHelper.IsSkipLuaHotfix = false;
            ProjectLPlayerContext projectLPlayerContext = GameManager.Instance.PlayerContext as ProjectLPlayerContext;

            this.SetGoldCount(projectLPlayerContext.GetGold());
            this.SetCrystalCount(projectLPlayerContext.GetCrystal());
            this.SetEnergy(projectLPlayerContext.GetEnergy(), projectLPlayerContext.GetEnergyMax());
        }