Example #1
0
        protected virtual void OnShowEntitySuccess(object sender, GameEventArgs e)
        {
            ShowEntitySuccessEventArgs ne = (ShowEntitySuccessEventArgs)e;

            if (ne.EntityLogicType == typeof(MyHuman))
            {
                m_MyHuman = (MyHuman)ne.Entity.Logic;
            }
        }
Example #2
0
        public virtual void Initialize()
        {
            GameEntry.Event.Subscribe(ShowEntitySuccessEventArgs.EventId, OnShowEntitySuccess);
            GameEntry.Event.Subscribe(ShowEntityFailureEventArgs.EventId, OnShowEntityFailure);

            GameEntry.Entity.ShowMyRole(GameEntry.DataLocal.HumanLogic.MyHumanData);

            GameOver  = false;
            m_MyHuman = null;
        }