示例#1
0
    // Use this for initialization
    void Start()
    {
        // Using delayed invoke is not necessary, can change script execution order in Unity/Project Settings
        currentlyBattling = true;
        playerWon = false;
        enemyWon = false;
        paused = false;
        playerParticipate = true; // Set to true for testing
        unitsData = GameObject.Find("UnitsData");
        unitManager = unitsData.GetComponent<UnitManager>();
        gameManager = unitsData.GetComponent<GameManagers>();
        battleUI = GetComponent<BattleUI>();

        playerUnits = unitManager.getBattlingSquad();
        enemyUnits = unitManager.getEnemySquad(0); ////////////////////////  CHANGE MEEEEEEEEEEEEEEEEEEEEEEEE
    }