forked from akanyan/mu3-mods
feat(BetterGiveUp): yeet
This commit is contained in:
19
Enhancements/BetterGiveUp/MU3.Battle/patch_PlayerControl.cs
Normal file
19
Enhancements/BetterGiveUp/MU3.Battle/patch_PlayerControl.cs
Normal file
@ -0,0 +1,19 @@
|
||||
using MonoMod;
|
||||
using UnityEngine;
|
||||
|
||||
namespace MU3.Battle;
|
||||
|
||||
class patch_PlayerControl(PlayerParam param): PlayerControl(param) {
|
||||
private Vector3? _positionForce = null;
|
||||
|
||||
public extern Vector3 orig_get__playPosition();
|
||||
[MonoModPublic]
|
||||
public new Vector3 _playPosition {
|
||||
get {
|
||||
return _positionForce ?? orig_get__playPosition();
|
||||
}
|
||||
set {
|
||||
_positionForce = value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user