public static void SummonPartyUnits() { List <Vector2Int> positions = FieldManager.instance.GetTileCategoryPositions(TileCategory.Stair); List <Unit> units = GameManager.PartyUnits; if (units.Count > positions.Count) { Debug.LogError("Upstair 부족!! 소환할 곳이 없음!"); } for (int i = 0; i < Mathf.Min(positions.Count, units.Count); i++) { Common.Command.Summon(units[i], positions[i]); } IndicatorView.HideTileIndicator(); SystemMessageView.HideMessage(); SystemMessageView.ReserveMessage("전투 시작!"); }
private void Awake() { instance = this; tileIndicators = null; }