// -- can not be static
        public void NotifyNativeGetAppVersion(string result)
        {
            Debug.Log("C#: NotifyNativeGetAppVersion, result: " + result);

            string resultStr = "";
            Dictionary <string, object> jsonDictionary = (Dictionary <string, object>)fastJSON.JSON.Parse(result);

            foreach (KeyValuePair <string, object> kp in jsonDictionary)
            {
                resultStr += kp.Key + ": " + kp.Value.ToString() + "\n";
            }
            MainScene.ShowJaveResult(resultStr);
        }
 public void NotifyNativeGetCppVersion(string result)
 {
     Debug.Log("C#: NotifyNativeGetCppVersion, result: " + result);
     MainScene.ShowCppResult(result);
 }
Exemple #3
0
 // Use this for initialization
 private void Start()
 {
     Debug.Log("C# run, version: " + GateKeeper.CSharpVersion);
     Instance = this;
     Init();
 }
 // Use this for initialization
 private void Start()
 {
     Debug.Log("C# run, version: " + GateKeeper.CSharpVersion);
     Instance = this;
     Init();
 }