예제 #1
0
 // Called by the Event System when we release our click on a game object.
 // Release our held object and throw it based off our controller motino
 public void ReleaseGameObject()
 {
     // Only throw an object if we're holding onto something
     _isFloating = false;
     _grabbedThrowable.GetReleased();
     _grabbedThrowable = null;
 }
 // Called by the Event System when we release our click on a game object.
 // Release our held object and throw it based off our controller motino
 public void ReleaseGameObject()
 {
     // Only throw an object if we're holding onto something
     if (_grabbedThrowable != null)
     {
         _grabbedThrowable.GetReleased();
         _grabbedThrowable = null;
     }
 }