예제 #1
0
        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);
        }
예제 #2
0
 public void AddEnclosureObjectList(EnclosureObjectData enclosureObjectType)
 {
     _enclosureObjectStockList.Add(enclosureObjectType);
 }