// Use this for initialization void Start() { if (Bmob == null) { Bmob = gameObject.AddComponent <BmobUnity>(); } else { Bmob = gameObject.GetComponent <BmobUnity>(); // 获得BmobUnity对象 } Bmob.initialize("79623dc152c7ab6d20e97fd900fe0eca", "745f2826456fa0e1c9ee1a65ad9e2768"); // BmobDebug.Register (print); // BmobDebug.level = BmobDebug.Level.TRACE; }