Example #1
0
    private void Start()
    {
        List <int> inBattleIDs = new List <int>();

        foreach (GameObject g in inBattleUnits)
        {
            Unit unit = g.GetComponent <Unit>();
            turnSystem.AddUnit(unit);
            inBattleIDs.Add(unit.ID);
            characterSwitcher.AddUnit(g, true);
        }

        foreach (GameObject g in reserveUnits)
        {
            characterSwitcher.AddUnit(g, false);
        }

        dummySkill.TargetSystem   = targetSystem;
        dummySkill.OnTurnEndEvent = onTurnEnd;

        targetSystem.SetInBattleTargets(inBattleIDs);

        StartCoroutine(LateStart(1));
    }