Example #1
0
 public void MovePiece(float axisValue)
 {
     if (CurrentFallingPiece != null)
     {
         if (axisValue > 0f)
         {
             Drop dropScript = CurrentFallingPiece.gameObject.GetComponent <Drop>();
             dropScript.MovePieceRight();
         }
         else                // < 0f
         {
             Drop dropScript = CurrentFallingPiece.gameObject.GetComponent <Drop>();
             dropScript.MovePieceLeft();
         }
     }
 }