32 lines
674 B
C#
32 lines
674 B
C#
namespace Gameplay.Buff
|
|
{
|
|
public class BuffChangeMoveLevel : BaseBuff
|
|
{
|
|
|
|
private int _moveLevel;
|
|
private int _oldMoveLevel;
|
|
|
|
protected override void _OnInit()
|
|
{
|
|
base._OnInit();
|
|
_moveLevel = _TryGetIntParam(0);
|
|
}
|
|
|
|
protected override void _OnAdd()
|
|
{
|
|
base._OnAdd();
|
|
|
|
_oldMoveLevel = owner.commonData.crossLevel;
|
|
owner.commonData.crossLevel = _moveLevel;
|
|
}
|
|
|
|
protected override void _OnRemove()
|
|
{
|
|
base._OnRemove();
|
|
|
|
owner.commonData.crossLevel = _oldMoveLevel;
|
|
}
|
|
|
|
}
|
|
}
|