1 |
-
upload with new input
-
result: Success time: 0.27s memory: 213248 kB returned value: 0
1.function PrintType(item : String){ 2. Debug.Log("I'm a string, type String"); 3.} 4. 5.function PrintType(item : int){ 6. Debug.Log("I'm an integer, type int"); 7.} 8. 9.function PrintType(item : float){ 10. Debug.Log("I'm a float, type float"); 11.} 12. 13.function PrintType(item : boolean){ 14. Debug.Log("I'm a boolean, type boolean"); 15.} 16. 17.function PrintType(item : Array){ 18. Debug.Log("I'm an array, type Array"); 19.} 20. 21.function PrintType(item: GameObject){ //catches everything else 22. Debug.Log("I'm something else"); 23.} 24. 25.function PrintType(){ 26. Debug.Log("You forgot to supply an argument!"); 27.} 28. 29.PrintType(); 30.PrintType("hello"); 31.PrintType(true); -
result: Success time: 0.26s memory: 213248 kB returned value: 0
1.function SayHello(){ 2. Debug.Log("Hello world"); 3.} -
result: Success time: 0.27s memory: 213248 kB returned value: 0



