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)); }
public override void Enter() { IsEnd = false; CurrentTime_ = 0; AlphaBox_ = new MotionAlphaBox(Master); AlphaBox_.SetAlpha(BeginAlpha_); }
public override void Enter() { AlphaBox_ = new MotionAlphaBox(Master); AlphaBox_.SetAlpha(Alpha_); }