Example #1
0
    private void Start()
    {
        _playerBurger = _playerBurgerObject.GetComponent <IBurgerViewable>();
        _moneyHolder  = GetComponent <MoneyHolder>();

        LoadStates();

        _currentState = _allStates[1];
        _currentState.Activate(ChangeDebug);
    }
Example #2
0
    private void Awake()
    {
        _origin     = _orderObject.localPosition;
        _orderImage = _orderObject.GetComponent <Image>();
        _anim       = _orderObject.GetComponent <Animator>();
        _previewer  = GetComponent <IBurgerViewable>();

        _corners[0].OnObjectHoverMessage += DisplayHeader;
        _corners[1].OnObjectHoverMessage += DisplayHeader;
        _corners[2].OnObjectHoverMessage += DisplayHeader;
    }
Example #3
0
 private void Start()
 {
     _burger = _burgerViewableObject.GetComponent <IBurgerViewable>();
 }
Example #4
0
 private void Awake()
 {
     _customerBurger    = GetComponent <IBurgerViewable>();
     _creator           = GetComponent <CustomerRequestCreator>();
     _presenterAnimator = new CustomerPresenter();
 }