Ejemplo 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;
     }
 }
Ejemplo 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;
     }
 }
Ejemplo n.º 3
0
 public void SetCurrentSelectedPiece(JewellerPiece.piece piece)
 {
     currentSelectedPiece = piece;
 }
Ejemplo n.º 4
0
 public void SetAnchorType(JewellerPiece.piece piece)
 {
     anchorType = piece;
 }