Ejemplo n.º 1
0
        //Main
        private void Awake()
        {
            var uIInput = GetComponent <IInput>();

            _startingInGame = uIInput.StartInGame();
            GetHomeScreenBranches();
            _historyTrack  = EZInject.Class.NoParams <IHistoryTrack>();
            _cancelHandler = EZInject.Class.NoParams <ICancel>();
            _audioService  = EZInject.Class.WithParams <IAudioService>(this);
            AddService();
            _myDataHub = new DataHub(MainCanvasRect);
            _myDataHub.OnAwake();
        }
Ejemplo n.º 2
0
            protected override void Visit(ref ICancel entity)
            {
                if (entity is null)
                {
                    throw new ArgumentNullException(nameof(entity));
                }

                if (entity.SendId is null && entity.SendIdExpression is null)
                {
                    AddError(entity, Resources.ErrorMessage_CancelItemSendIdAndExpressionMissed);
                }

                if (entity.SendId is not null && entity.SendIdExpression is not null)
                {
                    AddError(entity, Resources.ErrorMessage_CancelItemSendIdAndExpressionSpecified);
                }

                if (entity.SendId is { Length : 0 })
Ejemplo n.º 3
0
 public DefaultCancelEvaluator(ICancel cancel)
 {
     _cancel = cancel ?? throw new ArgumentNullException(nameof(cancel));
     SendIdExpressionEvaluator = cancel.SendIdExpression?.As <IStringEvaluator>();
 }
Ejemplo n.º 4
0
 public CancelNode(DocumentIdNode documentIdNode, ICancel cancel) : base(documentIdNode, cancel) => _cancel = cancel;