private void Create() { if (!_isCounting) { return; } ITask task = _taskManager.GetRandomTask(); if (task != null) { ICard card = _cardCreator.CreateTaskCard(task, _taskData); _placeForCreation.AddCard(card); } CheckCardPlace(); }
public void AddTask(ICard card) { ITaskCard taskCard = card as ITaskCard; if (taskCard == null) { return; } GameObject obj = cardPlace.AddCard(card); TaskCardFormatter cf = obj.GetComponent <TaskCardFormatter>(); if (cf != null) { int price = ConverterController.Evaluation.GetTaskPrice(taskCard.Task.Data.BaseReward); cardsPrices[card] = price; cf.ActivateCardPricing(price); } }
public void CreateCardAtBase(ICard card) { _baseCardPlace.AddCard(card); }
public void AddCardToPlace(ICard card, CardPlace place) { place.AddCard(card); }
public void MoveToBase(ICard card) { _basePlace?.AddCard(card); }