Exemple #1
0
    private static void ComputerFixed(Computer.Owner owner)
    {
        ComputersBrokeCount--;

        Debug.Log("fixed: " + ComputersBrokeCount.ToString());

        MenuManager.Instance.UpdatePlayerSpeakBox(TextManager.Instance.GetComputerFixedString());

        if (owner != Computer.Owner.None)
        {
            MenuManager.Instance.UpdateEnemySpeakBox(TextManager.Instance.GetComputerFixedEnemyString(),
                                                     owner == Computer.Owner.Delegator ? EnemyController.EnemyType.Delegator : EnemyController.EnemyType.Manager);
        }

        if (ComputersBrokeCount <= 0)
        {
            Debug.Log("Game won");
            Instance.GameOver(true);
        }
    }
Exemple #2
0
    private static void ComputerBroked(Computer.Owner owner)
    {
        ComputersBrokeCount++;

        if (owner == Computer.Owner.Delegator)
        {
            Debug.Log("broken by deleg");
            MenuManager.Instance.UpdatePlayerSpeakBox(TextManager.Instance.GetDelegatorProblem());
            MenuManager.Instance.UpdateEnemySpeakBox(TextManager.Instance.GetDelegatorText(),
                                                     EnemyController.EnemyType.Delegator);
        }

        if (owner == Computer.Owner.Manager)
        {
            Debug.Log("broken by man");
            MenuManager.Instance.UpdatePlayerSpeakBox(TextManager.Instance.GetBossProblem());
            MenuManager.Instance.UpdateEnemySpeakBox(TextManager.Instance.GetBossText(),
                                                     EnemyController.EnemyType.Manager);
        }

        Debug.Log("broken: " + ComputersBrokeCount.ToString());
    }