-
-
Notifications
You must be signed in to change notification settings - Fork 137
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
Smoother embark and game screens refactor #1213
Smoother embark and game screens refactor #1213
Conversation
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.
A few changes to do, seems to work fine with host (I need to mess around more), not tested with client yet. Also need to check if there's conflict with the inventory rework, probably minor ones but please let's do that before any merge, I don't my whole work wasted.
|
||
namespace SS3D.Systems.Screens | ||
{ | ||
public static class GameScreens |
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.
For the sake of clarity, it'd be nice if you could add the [Server] [Client] [ServerOrClient] attributes on relevant methods. That way we understand better what execute what and it limits error due to server or client calling methods they're not supposed to.
@@ -12,72 +14,51 @@ namespace SS3D.Systems.Screens | |||
/// </summary> | |||
public class GameScreen : Actor | |||
{ | |||
[SerializeField] private ScreenType _screenType; | |||
public ScreenType ScreenType; |
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.
Should this stay private ?
using SS3D.Systems.Entities.Events; | ||
using UnityEngine; | ||
|
||
namespace SS3D.Systems.Entities.UI |
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.
What's this script for, please add comments
This reverts commit 05795f0.
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.
good to go
requested changes have been made
Summary
This PR reworks how the game screens work internally, adds a fade out when the player enters the game, creates a ScriptableSettings script to define how general UI works. Reorder objects around the game scene, and creates prefabs from a few objects on the game scene.