static bool Prefix(ref ModuleHover __instance) { BuffController buff = BuffController.MakeNewIfNone(__instance.block.tank); buff.RemoveHover(__instance); return(true); }
public void RemoveHover(ModuleHover hover) { this.allSegments["HoverForce"].ManipulateObj(new List <object> { hover }, "CLEAN"); this.allSegments["HoverRange"].ManipulateObj(new List <object> { hover }, "CLEAN"); this.allSegments["HoverDamping"].ManipulateObj(new List <object> { hover }, "CLEAN"); this.hoverListGeneric.Remove(hover); }
public void AddHover(ModuleHover hover) { this.hoverListGeneric.Add(hover); this.allSegments["HoverForce"].ManipulateObj(new List <object> { hover }, "SAVE"); this.allSegments["HoverRange"].ManipulateObj(new List <object> { hover }, "SAVE"); this.allSegments["HoverDamping"].ManipulateObj(new List <object> { hover }, "SAVE"); }