30 lines
702 B
C#
30 lines
702 B
C#
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using Games.GlobeDefine;
|
|
using GCGame.Table;
|
|
using GCGame;
|
|
using System;
|
|
|
|
public class MarketingWinImgMenuItemCS : MarketingWinMenuItemCS
|
|
{
|
|
public Image _BtnBg;
|
|
|
|
protected override void ShowActState(MarketingActState actState)
|
|
{
|
|
_ActId = actState.actID;
|
|
var actInfo = TableManager.GetActInfoClientByID(actState.actID, 0);
|
|
if(_MenuText != null)
|
|
_MenuText.text = actInfo.Name;
|
|
|
|
if(_BtnBg != null)
|
|
{
|
|
LoadAssetBundle.Instance.SetImageSprite(_BtnBg, actInfo.Icon);
|
|
}
|
|
|
|
RefreshActState(actState.state);
|
|
}
|
|
}
|