コード例 #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;
 }
コード例 #2
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
     if (_grabbedThrowable != null)
     {
         _grabbedThrowable.GetReleased();
         _grabbedThrowable = null;
     }
 }