public override void EnableLayer() { base.EnableLayer(); if (Database.Instance.islogin) { objHeadPrepareLogin.SetActive(false); objHeadLogined.SetActive(true); } else { objHeadLogined.SetActive(false); objHeadPrepareLogin.SetActive(true); // Get Pass, acount Saved GetPassSaveLocal(); } if (lobbyController == null) { lobbyController = GetComponent <LobbyController>(); lobbyController.Init(this); } else { lobbyController.Show(); } AudioAssistant.Instance.PlayMusic(StringHelper.SOUND_GATE_BG); SetSoundAndMusic(); }
void Start() { PlayerController.Init(); LobbyController.Init(); }