//completely missed obstacle void missedObs(ObstacleMissedEvent e) { if (currentState == ScoreState.Normal) { GameObject f = Instantiate(Resources.Load("Prefabs/TextFeedback"), new Vector3(e.obstacleX, e.obstacleY + 1, -4.68f), Quaternion.identity) as GameObject; f.transform.SetParent(canvas); f.GetComponent <Text>().material = Resources.Load("Materials/text_red") as Material; f.GetComponent <Text>().text = "X"; f.GetComponent <Text>().fontStyle = FontStyle.Bold; comboMultiplier = 1; //lower bar of missed color levelSliders[e.obstacle.currentColor].value -= penaltyForMiss; } }
void missedObs(ObstacleMissedEvent e) { DestroyObstacle(e.obstacle); }