Example #1
0
    public TimeCounter(float counter, float timer, TimeScaleMode mode = TimeScaleMode.SCALE)
    {
        this.counter = counter;
        this.Timer   = timer;

        _scaleMode = mode;
    }
Example #2
0
 public TextureTimeScrollModClip(string sourcePropertyName, FModMode fModMode, TimeScaleMode timeScaleMode)
 {
     this._sourcePropertyName = sourcePropertyName;
     this._speed         = 1f;
     this._timeScaleMode = timeScaleMode;
     this._textureTiling = 1f;
 }
Example #3
0
 public TextureTimeScrollModClip(string sourcePropertyName, FModMode fModMode, TimeScaleMode timeScaleMode, float speed, TilingMode tilingMode, float textureTiling)
 {
     this._sourcePropertyName = sourcePropertyName;
     this._speed         = speed;
     this._timeScaleMode = timeScaleMode;
     this._textureTiling = Mathf.Clamp(textureTiling, 0f, float.PositiveInfinity);
     this._tilingMode    = tilingMode;
 }
Example #4
0
 public TextureTimeScrollModClip(string sourcePropertyName, TimeScaleMode timeScaleMode, TilingMode tilingMode, float textureTiling)
 {
     this._sourcePropertyName = sourcePropertyName;
     this._speed         = 1f;
     this._timeScaleMode = timeScaleMode;
     this._textureTiling = textureTiling;
     this._tilingMode    = tilingMode;
 }
Example #5
0
        private float GetModTimeScale()
        {
            TimeScaleMode timeScaleMode = this._timeScaleMode;

            if (timeScaleMode != TimeScaleMode.Default)
            {
                return(0.05f);
            }
            return(1f);
        }
Example #6
0
 public TextureTimeScrollModClip()
 {
     this._sourcePropertyName = string.Empty;
     this._speed         = 1f;
     this._timeScaleMode = TimeScaleMode.Default;
 }
Example #7
0
 public void SetTimeScaleModePause()
 {
     timeScaleMode = TimeScaleMode.PAUSE;
 }
Example #8
0
 public void SetTimeScaleModeNormal()
 {
     timeScaleMode = TimeScaleMode.NORMAL;
 }
Example #9
0
 public void SetTimeScaleModeFastest()
 {
     timeScaleMode = TimeScaleMode.FASTEST;
 }