TitleReturnCommand.cs 395 B

1234567891011121314151617
  1. using System;
  2. public class TitleReturnCommand : TitleCommand
  3. {
  4. public void Init()
  5. {
  6. TitleReturnCommand.Instance = SingletonBase<TitleReturnCommand>.Instance;
  7. }
  8. protected override void Execute()
  9. {
  10. string buttonName = BaseMgr<TitleMgr>.Instance.m_currentActiveButton.ToString();
  11. BaseMgr<TitleMgr>.Instance.EnterButton(buttonName);
  12. }
  13. public static TitleReturnCommand Instance;
  14. }