示例#1
0
        public void SetValues()
        {
            TimeSpan diff  = DateTime.Now - StartTime;
            Vector3  col   = new Vector3(1, 1, 1);
            float    Alpha = 1.0f;

            if (Colorer.HasAnimData())
            {
                col = Colorer.GetValueForAnim((int)diff.TotalMilliseconds);
            }
            if (AlphaGen.HasAnimData())
            {
                Alpha = AlphaGen.GetValueForAnim((int)diff.TotalMilliseconds) / (float)0x7FFF;
            }
        }