Exemple #1
0
 public UpdatableDelayResult(float secondsDelay, IAsyncUpdateSource updateSource)
 {
     _timeToWait    = secondsDelay;
     _timer         = _timeToWait;
     _updateService = updateSource;
     _updateService.AddListener(this);
 }
Exemple #2
0
        /// <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;
        }
Exemple #3
0
        /// <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;
        }
Exemple #4
0
        /// <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;
        }
Exemple #5
0
        /// <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;
        }
Exemple #6
0
 internal UpdatableRetryResult(object opFactory, int millisecondsRetryDelay, int maxRetryCount, IAsyncUpdateSource updateSource)
     : base(opFactory, millisecondsRetryDelay, maxRetryCount)
 {
     _updateService = updateSource;
 }