// Token: 0x0600ACA2 RID: 44194 RVA: 0x002FFE94 File Offset: 0x002FE094 public void Initialize(ClientBattle clientBattle, ConfigDataBattleTreasureInfo treasureInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientBattleConfigDataBattleTreasureInfo_hotfix != null) { this.m_InitializeClientBattleConfigDataBattleTreasureInfo_hotfix.call(new object[] { this, clientBattle, treasureInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_clientBattle = clientBattle; this.m_battleTreasureInfo = treasureInfo; if (treasureInfo.ModelPosition.Count > 0) { this.m_position.x = treasureInfo.ModelPosition[0].X; this.m_position.y = treasureInfo.ModelPosition[0].Y; } this.m_graphic = clientBattle.CreateBattleGraphic(treasureInfo.Model, (float)treasureInfo.ModelScale * 0.01f); if (this.m_graphic != null) { this.m_graphic.SetParent(this.m_clientBattle.MapTreasureRoot); this.m_graphic.SetName("Treasure_" + treasureInfo.ID); Vector2 p = this.m_clientBattle.GridPositionToWorldPosition(this.m_position); this.m_graphic.SetPosition(this.ComputeGraphicPosition(p, 1f)); } }
// Token: 0x060089C4 RID: 35268 RVA: 0x00281CB8 File Offset: 0x0027FEB8 public void Initialize(ClientBattle battle, ConfigDataBattleTreasureInfo treasureInfo) { if (!BJLuaObjHelper.IsSkipLuaHotfix && this.TryInitHotFix("") && this.m_InitializeClientBattleConfigDataBattleTreasureInfo_hotfix != null) { this.m_InitializeClientBattleConfigDataBattleTreasureInfo_hotfix.call(new object[] { this, battle, treasureInfo }); return; } BJLuaObjHelper.IsSkipLuaHotfix = false; this.m_clientBattle = battle; this.m_battleTreasureInfo = treasureInfo; if (treasureInfo.ModelPosition.Count > 0) { this.m_position.x = treasureInfo.ModelPosition[0].X; this.m_position.y = treasureInfo.ModelPosition[0].Y; } this.m_graphic = battle.CreateBattleGraphic(treasureInfo.Model, (float)treasureInfo.ModelScale * 0.01f); if (this.m_graphic != null) { this.m_graphic.SetParent(this.m_clientBattle.MapTreasureRoot); this.m_graphic.SetName("Treasure_" + treasureInfo.ID); this.UpdateGraphicPosition(1f); } this.m_isOpened = false; this.m_isGraphicSkillFade = false; }