Esempio n. 1
0
 /// <summary>
 /// Sets which update passes are required to be active for this StopWatch to be updated.
 /// If not set it will be updated on every pass.
 /// </summary>
 /// <param name="pass">The pass on which this StopWatch should be updated.</param>
 public void SetUpdatePass(BehaviourDefinition.Passes pass)
 {
     mUpdatePasses.Add((Int32)pass);
 }
Esempio n. 2
0
 /// <summary>
 /// Implementation of Interface.
 /// </summary>
 /// <param name="newState"></param>
 /// <param name="oldState"></param>
 public override void OnStateChange(BehaviourDefinition.Passes newState, BehaviourDefinition.Passes oldState)
 {
     // The state has changed so we may need to change the music. We are so careful about this, because
     // checking the state of the MediaPlayer seems to be very expensive.
     ChangeMusic();
 }