//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(); }
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 })
public DefaultCancelEvaluator(ICancel cancel) { _cancel = cancel ?? throw new ArgumentNullException(nameof(cancel)); SendIdExpressionEvaluator = cancel.SendIdExpression?.As <IStringEvaluator>(); }
public CancelNode(DocumentIdNode documentIdNode, ICancel cancel) : base(documentIdNode, cancel) => _cancel = cancel;