12345678910111213141516171819202122232425262728293031323334353637 |
- using UnityEngine;
- using System.Collections;
- using System.Collections.Generic;
- public class MainController : MonoBehaviour {
- public GameObject registerPanelPrefab;
- public GameObject passwordBackPanelPrefab;
- void Start()
- {
- if(!LoadingPanel.IsComplete())
- {
- LoadingPanel.Complete(null);
- }
- SoundManager.GetInstatnce().bgSound.Play(SoundManager.GetInstatnce().bgSound.menu);
- }
- public void StartLocalBattle(MapData.MapID mapId)
- {
- BattleSession battleSession = Session.GetInstance ().GetBattleSession ();
- battleSession.mapId = mapId;
-
- // battleSession.GetMessageManager ().SearchBattle (mapId, MapData.Mode.Noraml);
- LoadingPanel.Show (false);
- }
- public void StartRemoteBattle(MapData.MapID mapId, MapData.Mode mode)
- {
- BattleSession battleSession = Session.GetInstance ().GetBattleSession ();
- battleSession.mapId = mapId;
-
- // battleSession.GetMessageManager ().SearchBattle (mapId, mode);
- LoadingPanel.Show (false);
- }
-
- }
|