예제 #1
0
    private void Awake()
    {
        _factoryController = transform.parent.GetComponent <FactoryController>();
        _factoryController.RegisterCallback(
            NotificationType.OnFactoryProgressChanged, OnFactoryProgressChanged);

        if (_factoryController.WidthType == FactoryWidthType.Large)
        {
            _text.GetComponent <RectTransform>().sizeDelta = new Vector3(2, 1);
        }

        OnFactoryProgressChanged();
    }