コード例 #1
0
    //get current option for each dropdown
    public void GetInfo()
    {
        location = locationDD.GetComponentInChildren <Text>().text;
        maxCost  = maxCostDD.GetComponentInChildren <Text>().text;
        days     = daysDD.GetComponentInChildren <Text>().text;

        Debug.Log("button");
        ama.SetOrigin(location);
        ama.SetMaxPrice(maxCost.Substring(1));
        ama.SetDuration(days);
        //List<string> temp = new List<string> ();
        //temp.Add ("Portland");
        //temp.Add ("Portland");
        //temp.Add ("Portland");
        //temp.Add ("Portland");
        //GameObject.Find("UserInfo").GetComponent<StoreUserInfo>().setAirportList(temp);
        //List<string> temp2 = new List<string> ();
        //temp2.Add ("PDX");
        //temp2.Add ("PDX");
        //temp2.Add ("PDX");
        //temp2.Add ("PDX");
        //GameObject.Find("UserInfo").GetComponent<StoreUserInfo>().setCityList(temp2);
        //SceneManager.LoadScene ("Location Menu", LoadSceneMode.Single);
        //return;
        ama.CallQuery();
//		StartCoroutine(ama.CallQuery ());
    }