示例#1
0
 private bool CanDrag()
 {
     /* Can drag disk if
      * it's on the top of the stick
      * it's not moving
      * game is not over
      * game is not paused
      */
     return(currentStick.GetTopDisk().name == this.name &&
            //_rigidBody.IsSleeping() &&
            !GameManager.instance.gameOver &&
            !GameManager.instance.gamePaused);
 }