Skip to content

Conversation

@chriselion
Copy link
Contributor

Apply a lot (but not 100%) of Rider's suggestions.

[HideInInspector]
public Rigidbody agentRb;
SoccerSettings m_SoccerSettings;
Renderer m_AgentRenderer;
Copy link
Contributor Author

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.

Copy link
Contributor

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;
Copy link
Contributor Author

@chriselion chriselion Feb 7, 2020

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,
Copy link
Contributor Author

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()
Copy link
Contributor Author

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.

@chriselion chriselion merged commit 7757d06 into release-0.14.0 Feb 7, 2020
@delete-merged-branch delete-merged-branch bot deleted the release-0.14.0-csharp-cleanup branch February 7, 2020 23:32
@chriselion chriselion mentioned this pull request Feb 8, 2020
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants