// Ran when button is clicked public void RunHelloWorld(Text text) { var reply = HelloWorldTest.Greet("Unity " + counter); text.text = "Greeting: " + reply.Message; counter++; }
// Ran when button is clicked public void RunHelloWorld(Text text) { var user = "******"; #if UNITY_ANDROID && !UNITY_EDITOR user = "******"; #elif UNITY_IOS && !UNITY_EDITOR user = "******"; #endif var reply = HelloWorldTest.Greet($"Unity {user}" + counter); text.text = "Greeting: " + reply.Message; counter++; }