TitleCommand.cs 364 B

1234567891011121314151617181920
  1. using System;
  2. using UnityEngine;
  3. public abstract class TitleCommand : MonoBehaviour
  4. {
  5. public void BaseExecute()
  6. {
  7. if (this.m_moveTime < Time.realtimeSinceStartup)
  8. {
  9. this.Execute();
  10. this.m_moveTime = Time.realtimeSinceStartup + 0.1f;
  11. }
  12. }
  13. protected abstract void Execute();
  14. private const float m_interval = 0.1f;
  15. private float m_moveTime;
  16. }