コード例 #1
0
    void GetConfigs()
    {
        Debug.Log("->GetConfigs");
        LocationServiceClient client = GetLocationServiceClient();

        ConfigArg[] args = client.GetConfigArgList();
        foreach (ConfigArg arg in args)
        {
            Debug.Log(string.Format("Key:{0},Value:{1}", arg.Key, arg.Value));
        }
        TransferOfAxesConfig axesConfig = client.GetTransferOfAxesConfig();

        Debug.Log("axesConfig");

        Debug.Log(string.Format("Zero Key:{0},Value:{1}", axesConfig.Zero.Key, axesConfig.Zero.Value));
        Debug.Log(string.Format("Scale Key:{0},Value:{1}", axesConfig.Scale.Key, axesConfig.Scale.Value));
        Debug.Log(string.Format("Direction Key:{0},Value:{1}", axesConfig.Direction.Key, axesConfig.Direction.Value));

        string[] pars     = axesConfig.Zero.Value.Split(',');
        Vector3  vector31 = new Vector3(float.Parse(pars[0]), float.Parse(pars[1]), float.Parse(pars[1]));

        Debug.Log("vector31:" + vector31);
    }