public void Init(C_UiEventMgr eventMgr) { eventMgr.BindEvent(typeof(UiMsgs.Hit), Hit); eventMgr.BindEvent(typeof(UiMsgs.Spread), Spread); eventMgr.BindEvent(typeof(UiMsgs.Kill), Kill); eventMgr.BindEvent(typeof(UiMsgs.Assists), Assists); eventMgr.BindEvent(typeof(UiMsgs.Killer), Killer); eventMgr.BindEvent(typeof(UiMsgs.Dot), Dot); eventMgr.BindEvent(typeof(UiMsgs.Blood), Blood); }
public void Init(C_UiEventMgr eventMgr) { eventMgr.BindEvent(typeof(UiMsgs.Hp), RefreshHp); eventMgr.BindEvent(typeof(UiMsgs.Ammo), RefreshAmmo); eventMgr.BindEvent(typeof(UiMsgs.WeaponCut), SetWeaponCut); }
public void Init(C_Attributes attributes, C_UiEventMgr eventMgr) { nameText.color = (attributes.camp == Battle.localPlayerCamp) ? friendColor : enemyColor; eventMgr.BindEvent(typeof(UiMsgs.Hp), RefreshHp); }