public void OnClick() { if (this.activity) { G3MapData.GetInstance().DoClickCheckPointHandler(this); } }
public void InitEvent() { G3MapData _mapdata = this.Model; _mapdata.DoClickLvHandler = (Action <G3Category>)Delegate.Combine(_mapdata.DoClickLvHandler, new Action <G3Category>(this.DoClickLv)); G3MapData expr_2D = this.Model; expr_2D.DoClickCheckPointHandler = (Action <G3LevelItem>)Delegate.Combine(expr_2D.DoClickCheckPointHandler, new Action <G3LevelItem>(this.DoClickCheckPoint)); GlobalEventHandle.DoRefreshCheckPoint += new Action <int>(this.UpdateCheckPoint); }
public void OnClick() { if (this.IsActivity) { G3MapData.GetInstance().DoClickLvHandler(this); } else { Debug.Log("ÀÌ°Å¡"); ToastManager.Show("TXT_NO_50055", true); } AudioManager.GetInstance().PlayEffect("sound_eff_button"); }
private void Awake() { G3MapData.m_instance = this; }
private void Start() { this.Model = G3MapData.GetInstance(); this.InitUI(); this.InitEvent(); }
//set position for item in level selector by row and col public void SetPosition(int row, int col) { base.transform.localPosition = new Vector3((float)(col * 150 + 75 - 300), (float)(G3MapData.GetInstance().GetGameBoxHeight(0) / 2 - row * 150 - 75 + 30), 0f); }
//set position for item in level selector by index public void SetPosition(int index) { this.SetPosition(G3MapData.GetInstance().GetRow(index), G3MapData.GetInstance().GetCol(index)); }