コード例 #1
0
    // Use this for initialization
    void Start()
    {
        player = GameObject.FindGameObjectWithTag("Player");
        enemy  = GameObject.FindGameObjectWithTag("Enemy");
        //allies = GameObject.FindGameObjectsWithTag("Ally");

        //playerPos = player.transform.position;
        //enemyPos = enemy.transform.position;

        enemyStats = enemy.GetComponent <Enemy1Stats>();
        plyrStats  = player.GetComponent <PlayerStats>();

        // Sets the amount of turns that the combat session will have
        turnCount = 2;

        //puts the beginning amount of enemies into a static variable that can be changed when an enemy dies.
        enemyCount = 1;

        currentState = CombatStates.START;
    }