Exemplo n.º 1
0
        /// <summary>
        /// 界面相关的事件监听
        /// </summary>
        /// <param name="sender">事件数据</param>
        /// <param name="e"></param>
        private void GameFormEvent(object sender, GameEventArgs e)
        {
            GameFormData data = (GameFormData)sender;

            switch (data.gameFormEnum)
            {
            case GameFormEnum.Init:
                m_Character = (Transform)data.Data;
                break;

            case GameFormEnum.BloodLoss:
                LiftCount[int.Parse(data.Data.ToString())].SetActive(false);
                break;

            case GameFormEnum.Coin:
                break;

            case GameFormEnum.FishBone:
                break;
            }
        }
Exemplo n.º 2
0
 protected override void OnInit(object userData)
 {
     base.OnInit(userData);
     _GameFormData = new GameFormData();
 }