protected virtual void OnShowEntitySuccess(object sender, GameEventArgs e) { ShowEntitySuccessEventArgs ne = (ShowEntitySuccessEventArgs)e; if (ne.EntityLogicType == typeof(MyHuman)) { m_MyHuman = (MyHuman)ne.Entity.Logic; } }
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; }