Exemplo n.º 1
0
    public Coroutine UnitHeal(Unit source, Unit target)
    {
        UnitUI sourceUI = FindUnitUI(source);
        UnitUI targetUI = FindUnitUI(target);

        return(StartCoroutine(ParallelCoroutine(
                                  () => sourceUI.AttackMove((targetUI.transform.position - sourceUI.transform.position).normalized),
                                  () => targetUI.HealEffect()
                                  )));
    }