示例#1
0
        // Order : SummonFighterObject -> RemoveDeadFighters -> CheckBattleFinished -> UpdateFigherObjectLocations

        private void UpdateFighterObjectLocations()
        {
            selectedEffect?.Finish();
            selectedEffect = null;

            SetFighterGroupMatrix();

            if (SetFighterObjects())
            {
                Timer       timer = new Timer(20);
                TaskManager task  = new TaskManager(timer);
                topEffectLayer.elements.Add(timer);
                task.TaskFinished += (t) => { RestartTime(); };
                task.StartTask();
                return;
            }
            RestartTime();
        }
示例#2
0
 public void DeselectHero()
 {
     teamManagement.DeselectHero();
     selectedEffect?.Finish();
     selectedEffect = null;
 }