MainController.cs 961 B

12345678910111213141516171819202122232425262728293031323334353637
  1. using UnityEngine;
  2. using System.Collections;
  3. using System.Collections.Generic;
  4. public class MainController : MonoBehaviour {
  5. public GameObject registerPanelPrefab;
  6. public GameObject passwordBackPanelPrefab;
  7. void Start()
  8. {
  9. if(!LoadingPanel.IsComplete())
  10. {
  11. LoadingPanel.Complete(null);
  12. }
  13. SoundManager.GetInstatnce().bgSound.Play(SoundManager.GetInstatnce().bgSound.menu);
  14. }
  15. public void StartLocalBattle(MapData.MapID mapId)
  16. {
  17. BattleSession battleSession = Session.GetInstance ().GetBattleSession ();
  18. battleSession.mapId = mapId;
  19. // battleSession.GetMessageManager ().SearchBattle (mapId, MapData.Mode.Noraml);
  20. LoadingPanel.Show (false);
  21. }
  22. public void StartRemoteBattle(MapData.MapID mapId, MapData.Mode mode)
  23. {
  24. BattleSession battleSession = Session.GetInstance ().GetBattleSession ();
  25. battleSession.mapId = mapId;
  26. // battleSession.GetMessageManager ().SearchBattle (mapId, mode);
  27. LoadingPanel.Show (false);
  28. }
  29. }