示例#1
0
    private void Awake()
    {
        _storeContoller = StoreContoller.Instance;
        _timeManager    = TimeManager.Instance;

        _targetStoreId = ConvertType.GetStoreId(_storeType);
    }
示例#2
0
文件: Store.cs 项目: Theerapon/GDSG
    public Store(Store_Template store_Template)
    {
        _storeContoller = StoreContoller.Instance;
        _currentItemSet = new List <StoreItemSet>();

        _definition            = store_Template;
        _isEvent               = false;
        _scheduleEvent         = ScheduleEvent.None;
        _currentStoreItemSetId = _definition.DefaultStoreItemId;
    }
示例#3
0
    private void Awake()
    {
        _totalItem                 = 0;
        baseItemShopSlots          = new List <BaseItemSellingSlot>();
        _inventoryContainer        = InventoryContainer.Instance;
        _characterStatusController = CharacterStatusController.Instance;
        _itemTemplateController    = ItemTemplateController.Instance;
        _notificationController    = NotificationController.Instance;
        _placesController          = PlacesController.Instance;
        _storeContoller            = StoreContoller.Instance;

        _placeId = ConvertType.GetPlaceId(_place);

        _inventoryContainer.OnInventoryUpdated.AddListener(Initializing);
    }
示例#4
0
    private void Awake()
    {
        _totalItem                 = 0;
        baseItemShopSlots          = new List <BaseItemShopSlot>();
        _itemTemplateController    = ItemTemplateController.Instance;
        _notificationController    = NotificationController.Instance;
        _inventoryContainer        = InventoryContainer.Instance;
        _characterStatusController = CharacterStatusController.Instance;
        _placesController          = PlacesController.Instance;

        _storeContoller = StoreContoller.Instance;
        _storeId        = ConvertType.GetStoreId(_storeType);
        _placeId        = ConvertType.GetPlaceId(_place);

        _itemTemp = _itemPrefab;
    }