/// <summary> /// Victoryyyyyy /// </summary> /// <param name="id"></param> /// <returns></returns> private bool Victory(int id) { soundC = GameObject.FindObjectOfType <SoundController>(); bc = GameObject.FindObjectOfType <BallController>(); bc.EndOfGame(); Win.text += "Victory for the Player " + id; ReplayText.text += "Press Space for replay"; soundC.RunVictorySound(); return(true); }