Skip to content
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

feat: NetworkAnimator added to boss door & floor switch #360

Merged
merged 1 commit into from
Sep 1, 2021

Conversation

fernando-cortez
Copy link
Collaborator

This PR addresses part of the work needed to finish MTT-993.

This adds NetworkAnimator functionality to only the doors and switches in the Boss Room scene.

@fernando-cortez fernando-cortez added 2-Easy This PR is trivial and can be reviewed quickly 1-Needs Review PR needs attention from the assignee and reviewers labels Aug 31, 2021
/// Client-side representation of a floor switch.
/// </summary>
[RequireComponent(typeof(NetworkFloorSwitchState))]
public class ClientFloorSwitchVisualization : NetworkBehaviour
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

oh nice, I like that red :)

/// </summary>
public class NetworkDoorState : NetworkBehaviour
{
public NetworkVariableBool IsOpen { get; } = new NetworkVariableBool();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, sadly this definition of NetworkVariableBool is removed in further versions of the netcode. Not an issue at this point, just remarking on the fact that it will have to be repalced with NetworkVariable<bool> at a later point

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same goes for all other non-generic NetworkVariable invocations

@pdeschain pdeschain added 3-Good to Merge and removed 1-Needs Review PR needs attention from the assignee and reviewers labels Sep 1, 2021
@fernando-cortez fernando-cortez merged commit fef434b into develop Sep 1, 2021
@fernando-cortez fernando-cortez deleted the feature/networkanimator-door-switches branch September 1, 2021 15:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2-Easy This PR is trivial and can be reviewed quickly 3-Good to Merge
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants