public override void _Ready()
    {
        Claims = M1.Claims;// Just link to M1 for now since it's the only one.
        M1.Connect(nameof(MouseActionTracker.StateUpdate), this, nameof(OnStateUpdate));
        M1.Connect(nameof(MouseActionTracker.Drag), this, nameof(OnDrag));
        M1.Connect(nameof(MouseActionTracker.Drop), this, nameof(OnDrop));

        collider = (IPickable)GetNode(AreaPath);
        collider.PickingMember = new PickingMixin(this, false, nameof(MouseOn), nameof(MouseOff));
    }
예제 #2
0
    public override void _Ready()
    {
        base._Ready();

        var area = GetNode <PickableAreaControl>("AreaControl");

        area.PickingMember = new PickingMixin(this, false, nameof(MouseOn), nameof(MouseOff));
        Claims.Claims.UnionWith(M1.Claims.Claims);
        M1.Connect(nameof(MouseActionTracker.FullClick), this, nameof(OnClick));

        indicator = GetNode <CSGTorus>("CSGTorus");
    }