Пример #1
0
 public void Update()
 {
     State.Transit();
     if (Input.GetKey(KeyCode.UpArrow))
     {
         State = new FaderOutState(this, Duration, FollowUpScene);
     }
 }
Пример #2
0
 public void GeneralSetup(AFaderStates state, float duration)
 {
     isTransitioning = true;
     Duration        = duration;
     Transition      = (state.GetType() == typeof(FaderInState)) ? 1 : 0;
 }
Пример #3
0
 public void Start()
 {
     Instance = this;
     State    = new FaderInState(this, Duration); //FaderInState is always used, when the scene starts.
 }