Пример #1
0
    public void Update()
    {
        pop.CallForRotation();

        if (!pop.StillAlive())
        {
            Restart();
        }

        if (Input.GetButtonDown("Reset"))
        {
            Restart();
        }
    }
Пример #2
0
    public void Update()
    {
        pop.CallForRotation();
        linesToDraw = pop.GetAllLines();
        UpdateRenderers();

        if (!pop.StillAlive())
        {
            Restart();
        }

        if (Input.GetButtonDown("Reset"))
        {
            Restart();
        }
    }