void PickupObj() { if (hoveredObj != null) { hoveredObj.transform.SetParent(transform); state = PlaceAndScaleControllerState.Holding; } }
void StartScaling() { Selectable obj = otherController.selectedObj; if (obj != null) { startControllerDistance = Vector3.Distance(transform.position, otherController.transform.position); startScale = obj.transform.localScale; state = PlaceAndScaleControllerState.Scaling; } }
void ReleaseObj() { Selectable obj = selectedObj; if (obj != null) { obj.transform.SetParent(null); } state = PlaceAndScaleControllerState.Idle; otherController.SwitchToPrimary(); }
void StopScaling() { state = PlaceAndScaleControllerState.Idle; }