internal void IconStoppedDraggingOverTarget(DraggableIcon icon) { if (_IconDraggedToTarget != null) { DragData data = new DragData() { Icon = icon, Target = this, DragPosition = icon.DragPosition }; _IconDraggedToTarget.Invoke(data); } }
private void SpawnIcon() { _Icon = GameObject.Instantiate <DraggableIcon>(_PrefabIcon); _Icon.SetOrigin(this); }