using UnityEngine; public class Status_RedName : Status_Base { public sealed override void Init(H0605_tagObjAddBuff data) { base.Init(data); GActorPlayerBase _player = GAMgr.Instance.GetBySID(data.ObjID) as GActorPlayerBase; if (_player != null) { _player.SwitchRedName(true); } } public sealed override void Update() { } public sealed override void UnInit(uint objId, byte buffType) { GActorPlayerBase _player = GAMgr.Instance.GetBySID(h0605.ObjID) as GActorPlayerBase; if (_player != null) { if (PlayerDatas.Instance.maliciousAtkPlayer.Contains(h0605.ObjID)) { _player.SwitchYellowName(true); } else { _player.SwitchRedName(false); } } base.UnInit(objId, buffType); } }