// Update is called once per frame void Update() { if (isGoal) { increaseImportanceRanking(10); mycC.setGoalColor(); } if (isHit) { wasHit = true; myCT.addToTimer(colorAppreciateValue); } if (!isHit && wasHit) { StartCoroutine(myCT.subtractFromTimer(colorDepreciateValue)); wasHit = false; } }