Esempio n. 1
0
    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();
    }
Esempio n. 2
0
 void Start()
 {
     PlayerController.Init();
     LobbyController.Init();
 }