コード例 #1
0
        // -- 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);
        }
コード例 #2
0
 public void NotifyNativeGetCppVersion(string result)
 {
     Debug.Log("C#: NotifyNativeGetCppVersion, result: " + result);
     MainScene.ShowCppResult(result);
 }
コード例 #3
0
ファイル: MainScene.cs プロジェクト: toxly/unity-app
 // Use this for initialization
 private void Start()
 {
     Debug.Log("C# run, version: " + GateKeeper.CSharpVersion);
     Instance = this;
     Init();
 }
コード例 #4
0
 // Use this for initialization
 private void Start()
 {
     Debug.Log("C# run, version: " + GateKeeper.CSharpVersion);
     Instance = this;
     Init();
 }