示例#1
0
    public static bool Exists()
    {
        if (s_Instance == null)
        {
            LoLController tmpInst = FindObjectOfType(typeof(LoLController)) as LoLController;
            if (tmpInst != null)
            {
                tmpInst.Awake();
            }
            s_Instance = tmpInst;
        }

        return(s_Instance != null);
    }