Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     // Bmob.initialize("4414150cb439afdf684d37dc184e0f9f", "e1deb317442129c125b228ddf78e5f22");
     BmobDebug.Register(print);
     BmobDebug.level = BmobDebug.Level.TRACE;
     Bmob            = gameObject.GetComponent <BmobUnity> ();
 }
Exemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     BmobDebug.Register(print);
     BmobDebug.level = BmobDebug.Level.TRACE;
     Bmob            = gameObject.GetComponent <BmobUnity>();
     createData();
 }
Exemplo n.º 3
0
		// Use this for initialization
		void Start ()
		{
        // Bmob.initialize("4414150cb439afdf684d37dc184e0f9f", "e1deb317442129c125b228ddf78e5f22");
				BmobDebug.Register (print);
				BmobDebug.level = BmobDebug.Level.TRACE;
				Bmob = gameObject.GetComponent<BmobUnity> ();
		}
Exemplo n.º 4
0
 // Use this for initialization
 void Start()
 {
     score      = 0;
     playerName = "Mage";
     setName();
     bmobUnity = GetComponent <BmobUnity>();
     ifSend    = false;
 }
Exemplo n.º 5
0
    // Use this for initialization
    void Start()
    {
        bmob = GameObject.FindGameObjectWithTag("GameController").GetComponent <BmobUnity>();
        List <string> ids = GetMacByNetworkInterface();

        if (ids.Count > 0 && GameUser.CurrentUser == null)
        {
            foreach (string id in ids)
            {
                FindUser(id);
            }
            StartCoroutine(checkLogin(ids));
        }
    }
Exemplo n.º 6
0
    private void Start()
    {
        Bmob = GetComponent <BmobUnity>();

        if (Bmob == null)
        {
            Bmob = gameObject.AddComponent <BmobUnity>();
        }

        Bmob.ApplicationId = GameConstData.BMOB_APP_ID;
        Bmob.RestKey       = GameConstData.BMOB_REST_KEY;

        DontDestroyOnLoad(gameObject);
    }
Exemplo n.º 7
0
    // 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;
    }
Exemplo n.º 8
0
        void Start()
        {
            for (int i = 0; i < 25; i++)//利用tag将所有定义的游戏对象赋值
            {
                gameobject[i] = GameObject.FindWithTag(i.ToString());
            }
            for (int i = 0; i < 25; i++)                   //利用for循环获取每一个零件的原始x,y,z轴坐标位置,用于装配时直接归位
            {
                x[i] = gameobject[i].transform.position.x; //获取x轴坐标位置
                y[i] = gameobject[i].transform.position.y;
                z[i] = gameobject[i].transform.position.z;
            }
            gameobject[24].SetActive(false);
            liucheng = GameObject.Find("流程").GetComponent <Button>();
            chongzhi = GameObject.Find("Button").GetComponent <Button>();
            chongzhi.onClick.AddListener(() => OnClick(1));
            liucheng.onClick.AddListener(() => OnClick(2));
            chaizhuangtishi = GameObject.Find("拆装提示");

            BmobDebug.Register(print);
            BmobDebug.level = BmobDebug.Level.TRACE;
            Bmob            = gameObject.GetComponent <BmobUnity> ();
        }
Exemplo n.º 9
0
 // Use this for initialization
 void Start()
 {
     BmobDebug.Register (print);
             BmobDebug.level = BmobDebug.Level.TRACE;
             Bmob = gameObject.GetComponent<BmobUnity> ();
 }
Exemplo n.º 10
0
 void Awake()
 {
     instance = this;
     this.bmob = GameObject.FindObjectOfType<BmobUnity>();
 }
Exemplo n.º 11
0
 // Use this for initialization
 void Start()
 {
     BmobDebug.Register(print);
     BmobDebug.level = BmobDebug.Level.TRACE;
     Bmob            = GetComponent <BmobUnity>();
 }
Exemplo n.º 12
0
 void Awake()
 {
     instance  = this;
     this.bmob = GameObject.FindObjectOfType <BmobUnity>();
 }
Exemplo n.º 13
0
 void Awake()
 {
     BmobDebug.Register(print);
     BmobDebug.level = BmobDebug.Level.TRACE;
     bmobUnity       = GetComponent <BmobUnity>();
 }
Exemplo n.º 14
0
    //---------------------------------------------------------

    void Start()
    {
        bmobUnity = gameObject.GetComponent <BmobUnity>();
    }
Exemplo n.º 15
0
 // Use this for initialization
 void Start()
 {
     bmobUnity = GetComponent <BmobUnity>();
 }
Exemplo n.º 16
0
 /// <summary>
 /// Bmobs the init.
 /// </summary>
 void BmobInit()
 {
     BmobDebug.Register(print);
     BmobDebug.level = BmobDebug.Level.TRACE;
     Bmob            = GameObject.Find("Main Camera").GetComponent <BmobUnity> ();
 }
Exemplo n.º 17
0
 void Awake()
 {
     BmobDebug.Register(print);
     Bmob = gameObject.GetComponent <BmobUnity>() ?? gameObject.AddComponent <BmobUnity>();// gameObject.GetComponent<BmobUnity>();
     Bmob.ApplicationId = TestBmob.ApplicationId;
 }