public UpdatableDelayResult(float secondsDelay, IAsyncUpdateSource updateSource) { _timeToWait = secondsDelay; _timer = _timeToWait; _updateService = updateSource; _updateService.AddListener(this); }
/// <summary> /// Initializes a new instance of the <see cref="WaitAnimatorResult"/> class. /// </summary> public WaitAnimatorResult(Animator anim, int layer, IAsyncUpdateSource updateSource) { Debug.Assert(anim != null); Debug.Assert(updateSource != null); _updateSource = updateSource; _anim = anim; _layer = layer; }
/// <summary> /// Initializes a new instance of the <see cref="PlayAnimatorResult"/> class. /// </summary> public PlayAnimatorResult(Animator anim, int stateNameHash, int layer, IAsyncUpdateSource updateSource) { Debug.Assert(anim != null); Debug.Assert(updateSource != null); _updateSource = updateSource; _anim = anim; _stateNameHash = stateNameHash; _layer = layer; }
/// <summary> /// Initializes a new instance of the <see cref="PlayAnimationResult"/> class. /// </summary> public PlayAnimationResult(Animation anim, string animationName, PlayMode mode, IAsyncUpdateSource updateSource) { Debug.Assert(anim != null); Debug.Assert(updateSource != null); _updateSource = updateSource; _anim = anim; _animationName = animationName; _playMode = mode; }
/// <summary> /// Initializes a new instance of the <see cref="PlayAnimatorResult"/> class. /// </summary> public PlayAnimatorResult(Animator anim, string stateName, int layer, IAsyncUpdateSource updateSource) { Debug.Assert(anim != null); Debug.Assert(stateName != null); Debug.Assert(updateSource != null); _updateSource = updateSource; _anim = anim; _stateNameHash = Animator.StringToHash(stateName); _layer = layer; }
internal UpdatableRetryResult(object opFactory, int millisecondsRetryDelay, int maxRetryCount, IAsyncUpdateSource updateSource) : base(opFactory, millisecondsRetryDelay, maxRetryCount) { _updateService = updateSource; }