Example #1
0
 private static void JSAlignGameObject(string _activity, string _params)
 {
     try
     {
         JSONNode   root = JSON.Parse(_params);
         string     uuid = root["uuid"].Value;
         GameObject go   = ResourceMgr.FindGameObject(uuid);
         if (null == go)
         {
             onNotify("GameObject " + uuid + " is not exists!");
             return;
         }
         CameraMgr.Align(go.transform);
     }
     catch (System.Exception e)
     {
         onNotify("Parse json has error: " + e.Message);
     }
 }