MegaSelection.cs 627 B

1234567891011121314151617181920212223242526
  1. using UnityEngine;
  2. // Going to need a clear selection
  3. public class MegaSelectionMod : MegaModifier
  4. {
  5. public override MegaModChannel ChannelsChanged() { return MegaModChannel.Selection; }
  6. public virtual void GetSelection(MegaModifiers mc) { }
  7. public override bool ModLateUpdate(MegaModContext mc)
  8. {
  9. GetSelection(mc.mod);
  10. return false; // Dont need to do any mapping
  11. }
  12. public override void DrawGizmo(MegaModContext context)
  13. {
  14. }
  15. // TEST this is needed
  16. public override void DoWork(MegaModifiers mc, int index, int start, int end, int cores)
  17. {
  18. for ( int i = start; i < end; i++ )
  19. sverts[i] = verts[i];
  20. }
  21. }