@@ -85,24 +85,24 @@ public class CommandTest
8585 // This method can be called without class name.
8686 // $ ShowCurrentSelectedObject() ⏎
8787 [uREPL .Command ]
88- static public void ShowCurrentSelectedObject ()
88+ static public string ShowCurrentSelectedObject ()
8989 {
90- return gameObject .Name ;
90+ return gameObject .name ;
9191 }
9292
9393 // This method can be called by the given name.
9494 // $ selected ⏎
9595 [uREPL .Command (name = " selected" )]
96- static public void ShowCurrentSelectedObject2 ()
96+ static public string ShowCurrentSelectedObject2 ()
9797 {
98- return gameObject .Name ;
98+ return gameObject .name ;
9999 }
100100
101101 // Completion view show the given description.
102102 [uREPL .Command (name = " selected2" , description = " show the selected gameobject name." )]
103- static public void ShowCurrentSelectedObject3 ()
103+ static public string ShowCurrentSelectedObject3 ()
104104 {
105- return gameObject .Name ;
105+ return gameObject .name ;
106106 }
107107}
108108```
@@ -180,8 +180,7 @@ public class SampleCompletion : CompletionPlugin
180180 var partialName = input .Substring (input .LastIndexOf (" \" " ) + 1 );
181181 return gameObjectNames_
182182 .Where (name => name .IndexOf (partialName ) != - 1 )
183- .Select (name => new CompletionInfo (
184- partialName , name , " G" , Color .red ))
183+ .Select (name => new CompletionInfo (partialName , name , " G" , Color .red ))
185184 .ToArray ();
186185 }
187186}
0 commit comments