Example #1
0
 /// <summary>
 /// 初期化処理
 /// </summary>
 void Start()
 {
     _upDateData       = 0;
     _abstractMap      = _abstractMapObj.GetComponent <Mapbox.Unity.Map.AbstractMap>();
     _getNowLotAndLong = _getNowLotAndLongObj.GetComponent <GetNowLotAndLong>();
     _swipeMap         = _swipeMapObj.GetComponent <SwipeMap>();
 }
Example #2
0
    public void Register()
    {
        // クラスのNCMBObjectを作成
        NCMBObject testClass = new NCMBObject("Umbrella");

        // オブジェクトに値を設定
        testClass["IsBorrow"] = false;
        testClass["LenderID"] = NCMBUser.CurrentUser.ObjectId;
        Goto.GetNowLotAndLong getNow = new Goto.GetNowLotAndLong();
        testClass["Latitude"]  = getNow.Latitude;
        testClass["Longitude"] = getNow.Longitude;

        // データストアへの登録
        testClass.SaveAsync();

        StartCoroutine(GetID(testClass, NCMBUser.CurrentUser));
    }