void bankshot() { if (puck.GoalScored) { if (Properties.NoofWalls >= 1) { Properties.NoofWalls = 0; puck.GoalScored = false; Properties.HumanplayerGoals = 0; Properties.AIPlayerGoals = 0; //this.YouWin(); StartCoroutine(PlayAudio(ChallengeWin_audio[0], "Win")); } else { puck.PlayerHits = 0; puck.GoalScored = false; Properties.HumanplayerGoals = 0; Properties.AIPlayerGoals = 0; //puck.Reset(); this.UpdateAttempts(); puck.RandomPuckReSpawn(); } } else if (!puck.GoalScored && puck.PlayerHits > 1) { puck.PlayerHits = 0; Properties.NoofWalls = 0; puck.GoalScored = false; Properties.HumanplayerGoals = 0; Properties.AIPlayerGoals = 0; //puck.Reset(); this.UpdateAttempts(); puck.RandomPuckReSpawn(); } }