Esempio n. 1
0
 public void CalculateScore(JewellerPiece.piece anchorType, JewellerPiece.piece jewelleryType)
 {
     if (anchorType == jewelleryType)
     {
         //Debug.Log("scored it");
         var curScore = scoreValue.GetValue();
         var total    = totalScore.GetValue();
         totalScore.SetValue(curScore + total);
         //scoreText.text = totalScore.GetValue().ToString();
         //add feadback for player here
         if (!_isDisabled)
         {
             feedbacks.GiveFeedback();
         }
     }
     noOfJewelleryPieces--;
     if (noOfJewelleryPieces <= 0)
     {
         _isComplete = true;
     }
     else
     {
         _isComplete = false;
     }
 }
Esempio n. 2
0
 public void CalculateScore(JewellerPiece.piece anchorType, JewellerPiece.piece jewelleryType)
 {
     //if(anchorProperty.GetAnchorType() == anchorProperty.GetCurrentSelectedPiece())
     if (anchorType == jewelleryType)
     {
         //Debug.Log("scored it");
         var curScore = scoreValue.GetValue();
         var total    = totalScore.GetValue();
         totalScore.SetValue(curScore + total);
         //scoreText.text = totalScore.GetValue().ToString();
         //add feadback for player here
         if (!_isDisabled)
         {
             feedbacks.GiveFeedback();
         }
     }
     noOfJewelleryPieces--;
     if (noOfJewelleryPieces <= 0)
     {
         //Debug.Log("jewellery complete");
         undoButton.SetActive(false);
         _isComplete = true;
     }
     else
     {
         //Debug.Log("jewellery incomplete");
         _isComplete = false;
     }
 }