コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        PhaseLoop();

        //Placed just after they've bought a city, make a new event:
        var gameEvent = new GameEvent("BUY_CITY", boughtCityValue);

        //Log it to the file
        UnityDebug.Log(gameEvent.ToJsonString());

        if (step == 1)
        {
            steps.StepOne();
        }

        else if (step == 2)
        {
            steps.StepTwo();
        }

        else if (step == 3)
        {
            steps.StepThree();
        }
        else
        {
            EndGame();
        }
        //myLogger.Log(EndGame, "");

        //foreach (var player in players)
        //{
        //    //Check if the game has been won:
        //    int playerScore = player.playerBuildings.Count;

        //    //Step Two trigger
        //    if (playerScore > 7)
        //        step = 2;
        //    //myLogger.Log(EndGame, "");

        //    //End game if needed
        //    if (playerScore > 17)
        //        EndGame();
        //    //myLogger.Log(EndGame, "");
        //}


        //if (Score >= 17)
        //{
        //    Endgame();
        //}

        //if (Score >= 17)
        //{
        //    Endgame();
        //}
    }
コード例 #2
0
 public static void Info(string message)
 {
     if (UseNewLogging)
     {
         QudDebug.buildLog.Info(Format(message));
     }
     else
     {
         UnityDebug.Log(Format(message, "Info"));
     }
 }
コード例 #3
0
 public static void Info(string message)
 {
     if (!PerformDebugging)
     {
         return;
     }
     if (UseNewLogging)
     {
         QudDebug.gameLog.Info(Format(message), EmptyArgs);
     }
     else
     {
         UnityDebug.Log(Format(message, "Info"));
     }
 }