/// <summary>
    ///
    /// </summary>
    void Awake()
    {
        if (Loading != null)
        {
            LoadingCache = Loading;
        }
        if (GetIpOnAwake)
        {
            StartCoroutine(GetIP());
        }
        if (!DetectBan)
        {
            this.GetComponent <bl_BanDetect>().enabled = false;
        }

        mDescrip = Description;
        OnLogin += onLogin;
        StartCoroutine(FadeOut());
        if (GameObject.Find(bl_SaveInfo.SaveInfoName) == null)
        {
            GameObject p = Instantiate(PlayerInfo, Vector3.zero, Quaternion.identity) as GameObject;
            p.name     = p.name.Replace("(Clone)", "");
            m_SaveInfo = p.GetComponent <bl_SaveInfo>();
        }
        else
        {
            m_SaveInfo = GameObject.Find(bl_SaveInfo.SaveInfoName).GetComponent <bl_SaveInfo>();
        }
    }
Ejemplo n.º 2
0
    /// <summary>
    /// 
    /// </summary>
    void Awake()
    {
        if (Loading != null) { LoadingCache = Loading; }
        if (GetIpOnAwake) { StartCoroutine(GetIP()); }
        if (!DetectBan) { this.GetComponent<bl_BanDetect>().enabled = false;}

        mDescrip = Description;
        OnLogin += onLogin;
        StartCoroutine(FadeOut());
        if (GameObject.Find(bl_SaveInfo.SaveInfoName) == null)
        {
            GameObject p = Instantiate(PlayerInfo, Vector3.zero, Quaternion.identity) as GameObject;
            p.name = p.name.Replace("(Clone)", "");
            m_SaveInfo = p.GetComponent<bl_SaveInfo>();
        }
        else
        {
            m_SaveInfo = GameObject.Find(bl_SaveInfo.SaveInfoName).GetComponent<bl_SaveInfo>();
        }
    }