public scr_Interactable_Result( scr_Stats.Interaction interaction, bool interactionSuccessfull, scr_Stats.ObjectType pickupObjectType = scr_Stats.ObjectType.None, i_Draggable draggable = null, i_Damageable damagable = null) { this.Interaction = interaction; this.InteractionSuccessfull = interactionSuccessfull; this.PickupObjectType = pickupObjectType; this.Dragable = draggable; this.Damagable = damagable; Validate(); }
private void Drag(i_Draggable drag, GameObject draggableGameObject) { if (drag_Draggable == drag) { draggableGameObject.transform.parent = null; drag_Draggable = null; draggableGameObject = null; drag_RelativePlayerDirectionToDragable = scr_Stats.Directions.None; } else { drag_Draggable = drag; this.drag_DraggableGameObject = draggableGameObject; drag_RelativePlayerDirectionToDragable = move_LookAtDirection; draggableGameObject.transform.SetParent(this.transform); } }