refactor party
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
using Game.Extensions;
|
||||
using Godot;
|
||||
using yourareanaiceo;
|
||||
|
||||
namespace Game;
|
||||
|
||||
public partial class DropZone : Control
|
||||
{
|
||||
@@ -14,7 +16,7 @@ public partial class DropZone : Control
|
||||
var meetingControl = ((MeetingControlDragData)data).MeetingControl;
|
||||
var meetingPhysicsBox = meetingControl.MeetingPhysicsBox;
|
||||
|
||||
var game = this.GetGame();
|
||||
var game = NodeExtensions.GetMain(this);
|
||||
game.AddChild(meetingPhysicsBox);
|
||||
meetingPhysicsBox.Position = GetGlobalMousePosition();
|
||||
meetingControl.QueueFree();
|
||||
|
||||
Reference in New Issue
Block a user