Ejemplo n.º 1
0
    void Update()
    {
        ///////////////////////////////////////test
        if (Input.GetKeyDown(KeyCode.K))
        {
            var        temp     = new DamageCalculator();
            UnitScript Attacker = MouseManager.Instance.SelectedUnit;
            UnitScript Defender = MouseManager.Instance.MouseoveredUnit;
            for (int i = 0; i < 1000; i++)
            {
                Debug.Log(temp.GetDmgWithProbability(Attacker, Defender));
            }
        }



        CheckForInput();

        /* if (Input.GetKeyDown(KeyCode.W))
         * {
         *   Debug.LogError(GameStateManager.Instance.GameState);
         *   Debug.LogError(GameStateManager.IsGreenActive());
         * }*/
    }