/// <summary> /// Handle drop of the object. /// </summary> private void DropObject() { Logger.Log("Drop object " + pickedUpGameObject); pickedUpGameObject = null; if (GameCallbacks.onObjectRelease != null) { GameCallbacks.onObjectRelease(true); } }
/// <summary> /// Handle throw of the object. /// </summary> private void ThrowObject() { Logger.Log("Throwed object " + pickedUpGameObject); pickedUpGameObject = null; if (GameCallbacks.onObjectRelease != null) { GameCallbacks.onObjectRelease(false); } }