1
0
forked from akanyan/mu3-mods

feat(BetterGiveUp): yeet

This commit is contained in:
2025-01-12 00:00:49 +00:00
parent e3b1f1885c
commit 31fa3ce028
5 changed files with 85 additions and 83 deletions

View File

@ -1,18 +0,0 @@
using UnityEngine;
namespace MU3.Notes;
class patch_FieldObject: FieldObject {
class patch_BarNotes {
class patch_Bar: BarNotes.Bar {
public extern void orig_update(NotesManager mgr, float width = 1f);
public new void update(NotesManager mgr, float width = 1f) {
orig_update(mgr, width);
if(frameAppear <= (double)mgr.getCurrentFrame() || itemBar == null) {
return;
}
itemBar.go.transform.localScale = Vector3.zero;
}
}
}
}

View File

@ -3,14 +3,8 @@
namespace MU3.Notes;
class patch_NotesManager: NotesManager {
public Vector3 enemyOffset { get; set; }
public Vector3? EnemyPositionForce { private get; set; } = null;
public extern Vector3 orig_getEnemyPos();
public new Vector3 getEnemyPos() => orig_getEnemyPos() + enemyOffset;
public extern void orig_reset();
public new void reset() {
enemyOffset = Vector3.zero;
orig_reset();
}
public new Vector3 getEnemyPos() => EnemyPositionForce ?? orig_getEnemyPos();
}