Ejemplo n.º 1
0
    private void ResetAppliedFormation()
    {
        if (CurrentAppliedFormation != null)
        {
            CurrentAppliedFormation.DetachBurfs();
        }

        CurrentAppliedFormation = null;
    }
Ejemplo n.º 2
0
    public void CheckProgrammerFormation(Vector3 position)
    {
        ResetAppliedFormation();

        foreach (var formation in Formation.formations)
        {
            if (formation.CanApplyFormation())
            {
                CurrentAppliedFormation = formation;

                CommonLogger.LogFormat("UnitManager::CheckProgrammerFormation => 진형 '{0}'가 적용됨.", CurrentAppliedFormation.Name);
                CurrentAppliedFormation.AttachBurfs(NotVacationProgrammers);

                break;
            }
        }
    }