コード例 #1
0
 /// <summary>
 /// Initializing the timer and turning it on
 /// </summary>
 /// <param name="interval">How long the timer will run for</param>
 /// <param name="id">ID of the timer</param>
 /// <param name="repeat">Number of times for the timer to repeat</param>
 public void Initialize(float interval, string id, int repeat)
 {
     // Call base
     base.Initialize(interval, id);
     // Timer will repeat a limited number of times
     type = Enums.RepetitionTimerSettings.Limited;
     // Timer will repeat based on the number that was passed in
     this.repeat = repeat;
 }
コード例 #2
0
 /// <summary>
 /// Initializing the timer and turning it on
 /// </summary>
 /// <param name="interval">How long the timer will run for</param>
 /// <param name="id">ID of the timer</param>
 /// <param name="repeat">Number of times for the timer to repeat</param>
 public void Initialize(float interval, string id, int repeat)
 {
     // Call base
     base.Initialize(interval, id);
     // Timer will repeat a limited number of times
     type = Enums.RepetitionTimerSettings.Limited;
     // Timer will repeat based on the number that was passed in
     this.repeat = repeat;
 }
コード例 #3
0
 /// <summary>
 /// Override the initialization for timers
 /// </summary>
 /// <param name="interval">How long the timer will run for</param>
 /// <param name="id">ID of the timer</param>
 public override void Initialize(float interval, string id)
 {
     // Call base
     base.Initialize(interval, id);
     // Repeat will be unused
     repeat = 0;
     // Timer will repeat forever
     type = Enums.RepetitionTimerSettings.Unlimited;
 }
コード例 #4
0
 /// <summary>
 /// Override the initialization for timers
 /// </summary>
 /// <param name="interval">How long the timer will run for</param>
 /// <param name="id">ID of the timer</param>
 public override void Initialize(float interval, string id)
 {
     // Call base
     base.Initialize(interval, id);
     // Repeat will be unused
     repeat = 0;
     // Timer will repeat forever
     type = Enums.RepetitionTimerSettings.Unlimited;
 }