예제 #1
0
    // Update is called once per frame
    void Update()
    {
        if (Time.time > nextActionTime)
        {
            nextActionTime += 1;

            playerUnit.IncrementEnergy(1);
            playerHUD.SetEP(playerUnit.currentEP);

            enemyUnit.IncrementEnergy(1);
            enemyHUD.SetEP(enemyUnit.currentEP);
        }
    }