ReplayExitBtn.cs 361 B

123456789101112131415161718192021
  1. using UnityEngine;
  2. using UnityEngine.UI;
  3. using System.Collections;
  4. public class ReplayExitBtn : MonoBehaviour
  5. {
  6. public Text txt;
  7. void Start()
  8. {
  9. txt.text = Language.GetStr ("Public", "exit");
  10. }
  11. public void OnClick()
  12. {
  13. ReplayManager.GetInstance ().StopReplay ();
  14. Session.GetInstance ().GetBattleSession ().GetMessageManager ().ToMenu ();
  15. }
  16. }