Skip to content

Commit

Permalink
fix readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
hecomi committed Nov 30, 2015
1 parent a4ee87c commit a5be117
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,24 @@ public class CommandTest
// This method can be called without class name.
// $ ShowCurrentSelectedObject() ⏎
[uREPL.Command]
static public void ShowCurrentSelectedObject()
static public string ShowCurrentSelectedObject()
{
return gameObject.Name;
return gameObject.name;
}

// This method can be called by the given name.
// $ selected ⏎
[uREPL.Command(name = "selected")]
static public void ShowCurrentSelectedObject2()
static public string ShowCurrentSelectedObject2()
{
return gameObject.Name;
return gameObject.name;
}

// Completion view show the given description.
[uREPL.Command(name = "selected2", description = "show the selected gameobject name.")]
static public void ShowCurrentSelectedObject3()
static public string ShowCurrentSelectedObject3()
{
return gameObject.Name;
return gameObject.name;
}
}
```
Expand Down Expand Up @@ -180,8 +180,7 @@ public class SampleCompletion : CompletionPlugin
var partialName = input.Substring(input.LastIndexOf("\"") + 1);
return gameObjectNames_
.Where(name => name.IndexOf(partialName) != -1)
.Select(name => new CompletionInfo(
partialName, name, "G", Color.red))
.Select(name => new CompletionInfo(partialName, name, "G", Color.red))
.ToArray();
}
}
Expand Down

0 comments on commit a5be117

Please sign in to comment.