using UnityEngine;
|
|
public class Status_RedName : Status_Base
|
{
|
public sealed override void Init(uint sid, int skillId, uint srcSid, int type, int lastTime)
|
{
|
base.Init(sid, skillId, srcSid, type, lastTime);
|
|
GActorPlayerBase _player = GAMgr.Instance.GetBySID(sid) 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(Sid) as GActorPlayerBase;
|
if (_player != null)
|
{
|
if (PlayerDatas.Instance.maliciousAtkPlayer.Contains(Sid))
|
{
|
_player.SwitchYellowName(true);
|
}
|
else
|
{
|
_player.SwitchRedName(false);
|
}
|
}
|
|
base.UnInit(objId, buffType);
|
}
|
}
|