Пример #1
0
    protected void WastedAllBallsEnd(object sender, EndGameEventArgs e)
    {
        Time.timeScale = 0;
        MainHelper mh          = GameObject.Find("MainHelper").GetComponent <MainHelper>();
        Game       currentGame = mh.GetCurrentGame();

        currentGame.GameInProgress = false;

        GameObject ballObj = null;

        ballObj = GameObject.Find("Ball");

        GameObject.Find("Morpher").GetComponent <Morpher>().KillTheBall();
    }