예제 #1
0
    public void OnPauseGame()
    {
        isGamePause = true;

        leftGeneral.SetPause();
        rightGeneral.SetPause();

        for (int i = 0; i < leftSoliders.Count; i++)
        {
            if (leftSoliders[i] != null)
            {
                leftSoliders[i].SetPause();
            }
        }
        for (int i = 0; i < rightSoliders.Count; i++)
        {
            if (rightSoliders[i] != null)
            {
                rightSoliders[i].SetPause();
            }
        }
        for (int i = 0; i < soliderHorse.Count; i++)
        {
            if (soliderHorse[i] != null)
            {
                soliderHorse[i].SetPause();
            }
        }
    }