-
Notifications
You must be signed in to change notification settings - Fork 4.4k
csharp cleanup #3392
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
csharp cleanup #3392
Conversation
| [HideInInspector] | ||
| public Rigidbody agentRb; | ||
| SoccerSettings m_SoccerSettings; | ||
| Renderer m_AgentRenderer; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andrewcoh A few unused variables from soccer. Just want to make sure there's no plans to bring these back.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah I missed this. Good to remove.
| [HideInInspector] | ||
| [SerializeField] | ||
| public int m_TeamID = 0; | ||
| public int m_TeamID; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is still public with m_ prefixes. Seems like it needs to be mutable at runtime so it should stay public (or have an accessor)
|
|
||
| public void GiveModel( | ||
| string behaviorName, | ||
| string newBehaviorName, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Argument name shadowed the behaviorName property
| { | ||
| class TestAgent : Agent | ||
| { | ||
| public AgentAction GetAction() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agent has a GetAction now, and this wasn't actually being used.
Apply a lot (but not 100%) of Rider's suggestions.