Esempio n. 1
0
        public override void Tick(float DeltaTime)
        {
            CurrentTime_ += DeltaTime;
            var T = CurrentTime_ / TotalTime_;

            if (T >= 1.0f)
            {
                AlphaBox_.SetAlpha(EndAlpha_);
                IsEnd = true;
                return;
            }

            AlphaBox_.SetAlpha(Mathf.Lerp(BeginAlpha_, EndAlpha_, T));
        }
Esempio n. 2
0
 public override void Enter()
 {
     IsEnd        = false;
     CurrentTime_ = 0;
     AlphaBox_    = new MotionAlphaBox(Master);
     AlphaBox_.SetAlpha(BeginAlpha_);
 }
Esempio n. 3
0
 public override void Enter()
 {
     AlphaBox_ = new MotionAlphaBox(Master);
     AlphaBox_.SetAlpha(Alpha_);
 }