public async UniTaskVoid StockEnclosureObjectDataAsync(IEnclosureObject enclosureObject, Vector2 localPosition, CancellationToken token) { var stockObject = _stockFactory.Stock(); await stockObject.SetSpriteAsync(GetStockSprite(enclosureObject.EnclosureObjectType), localPosition, token); var enclosureObjectData = new EnclosureObjectData( stockObject, enclosureObject.EffectValue, enclosureObject.EnclosureObjectType); _enclosureObjectDataEntity.AddEnclosureObjectList(enclosureObjectData); await stockObject.TweenStockPositionAsync(token); }
public void AddEnclosureObjectList(EnclosureObjectData enclosureObjectType) { _enclosureObjectStockList.Add(enclosureObjectType); }