Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (currentPhase == PhaseBuilder.PhaseType.Attack)
        {
            CheckEnemies();
        }
        if (currentPhase == PhaseBuilder.PhaseType.Combine && isGraphRefreshed == false)
        {
            //recalculate the graph
            AstarPath.active.Scan();
            isGraphRefreshed = true;
        }
        if (Input.GetKeyDown(KeyCode.Return)) // removed newPhase for testing purpose rn
        {
            ChangeBehaviour();
        }

        roundDisplay.text   = "Round : " + round + "/" + numberOfRounds;
        enemiesDisplay.text = "Enemies : " + numberOfEnemiesActive;
        phaseDisplay.text   = "Phase : " + currentPhase.ToString();
        healthDisplay.text  = "Lives : " + health;
    }