TurnOrder.CheckVictory C# (CSharp) Method

CheckVictory() public static method

public static CheckVictory ( ) : void
return void
    public static void CheckVictory()
    {
        if(IsBattlePhase()) {
            if(player1.Loses()) {
                Debug.Log("--------------PLAYER2 WINS----------------");
                Application.LoadLevel(4);
            } else if(player2.Loses()) {
                Debug.Log("--------------PLAYER1 WINS----------------");
                Application.LoadLevel(3);
            }
        }
    }