Conversation
| NetworkClient = FindObjectOfType<NetworkClient>(); | ||
|
|
||
| NetworkClient.ChangeServer("127.0.0.1", 6900); | ||
| NetworkClient.ChangeServer("192.168.0.3", 6900); |
| [SerializeField] private Light worldLight; | ||
|
|
||
| public MapUiController UIController; | ||
| public GameEventUI MiniMapController; //Adicionado |
There was a problem hiding this comment.
Please use english comments, also this seems irrelevant?
| @@ -0,0 +1,18 @@ | |||
| using UnityEngine; | |||
|
|
|||
| public class SingletonDontDestroy<T> : MonoBehaviour where T : MonoBehaviour | |||
There was a problem hiding this comment.
I think SingletonMonoBehaviour would be a better name
| public static event Action EventUpdateCurrentMiniMap; | ||
| public static event Action EventUpdateCoordinateMiniMap; |
There was a problem hiding this comment.
The Event probably can be omitted from the variable name
|
|
||
| private void Update() | ||
| { | ||
| EventUpdateCurrentMiniMap?.Invoke(); |
There was a problem hiding this comment.
What is the purpose of this one? We have another one that is triggered by GameManager which invokes the event passing the map name
There was a problem hiding this comment.
Removed, the event was registered on GameManager.OnMapChanged
| PathFinder = FindObjectOfType<PathFinder>(); | ||
|
|
||
| transform.localPosition = new Vector3(0.5f, 0f, 0.5f); | ||
| //transform.localPosition = new Vector3(0.5f, 0f, 0.5f); |
There was a problem hiding this comment.
I think this line can be removed
| "root": "D:/Ragnarok/Data kro/", | ||
| "grf": ["rdata.grf", "data.grf"], |
| */ | ||
| } | ||
|
|
||
| private void OnEventUpdateMap() |
There was a problem hiding this comment.
you can change the GameManager event to pass the map name as well, make it simpler here
| [SerializeField] private Canvas _displayControl; | ||
| [SerializeField] private RectMask2D _mask; | ||
| [SerializeField] private RawImage _mapBase; | ||
| [SerializeField] private Button _btnPlus; | ||
| [SerializeField] private Button _btnMinus; | ||
| [SerializeField] private Button _btnMinimize; | ||
| [SerializeField] private TextMeshProUGUI _coordinates; | ||
| [SerializeField] private RawImage _playerIndicator; | ||
|
|
||
| [SerializeField] private int m_nZoom = DEFAULT_ZOOM_INDEX; | ||
| [SerializeField] private float m_fOffSetX = 0.0f; | ||
| [SerializeField] private float m_fOffSetY = 0.0f; | ||
| [SerializeField] private int m_nCenterX = 0; | ||
| [SerializeField] private int m_nCenterY = 0; |
There was a problem hiding this comment.
I kinda dislike the hungarian notation and the underscore for private fields, but that's debatable
No description provided.