void CheckIfNothingIsHit(AisleEnum pAisleEnum) { if (pAisleEnum != AisleEnum.nothing) { collectedItems.Add(pAisleEnum); switch (pAisleEnum) { case AisleEnum.alcohol: SAMPLE1 += 1; break; case AisleEnum.cannedgoods: SAMPLE2 += 1; break; case AisleEnum.water: SAMPLE3 += 1; break; case AisleEnum.tissue: SAMPLE4 += 1; break; } // to be modified alcoholText.text = "Alcohol: " + SAMPLE1.ToString(); cannedGoodsText.text = "Canned Goods: " + SAMPLE2.ToString(); waterText.text = "Water: " + SAMPLE3.ToString(); tissueText.text = "Tissue: " + SAMPLE4.ToString(); } }
void CounterAdder(ref int pToBeUpdated, int pRequirement, Text pSampText, AisleEnum pSomething) { pToBeUpdated += 1; ToBeModifiedFunc(pSampText, pToBeUpdated, pRequirement, pSomething.ToString()); didWin = false; if (pToBeUpdated == pRequirement) { didWin = true; } }
void DoOnExit(Collider pOther) { //switch (colliderSide) //{ // case TappedSideEnum.left: // //collidedAisleLeft.Remove(pOther.GetComponent<AisleChecker>().GetValue()); // break; // case TappedSideEnum.right: // //collidedAisleRight.Remove(pOther.GetComponent<AisleChecker>().GetValue()); // break; //} if (pOther.tag != "Cashier") { collidedAisle = AisleEnum.nothing; } }