// Called by the Event System when we click on an object, receives a game object to hold. // The object given must have a throwable object, otherwise we don't do anything public void HoldGameObject(GameObject throwableObject) { Throwable throwable = throwableObject.GetComponent <Throwable>(); if (throwable != null) { _isFloating = true; _grabbedThrowable = throwable; _grabbedThrowable.GetGrabbed(gameObject); } }