mirror of
https://github.com/Kaveinator/NetickProForUnity.git
synced 2025-10-26 09:49:06 -07:00
Read the description for commit details.
- Added `OnSceneOperationBegan` and `OnSceneOperationDone`. These are network events for when a scene load/unload operation begins and when it is finished, they offer more information than the older equivalent methods. `OnSceneLoadStarted` and `OnSceneLoaded` are now marked as `[Obsolete]` and will be removed in the future. - Added `Teleport` method to `NetworkTransform`, `NetworkRigidbody`, and `NetworkRigidbody2D`. This allows you to skip interpolation for one tick. - Fixed an issue causing scene objects to not get destroyed for late joiners.
This commit is contained in:
@@ -8,7 +8,7 @@ namespace Netick.Samples.Bomberman
|
||||
{
|
||||
// Networked properties
|
||||
[Networked]
|
||||
public bool Visible { get; set; } = true;
|
||||
public NetworkBool Visible { get; set; } = true;
|
||||
|
||||
[OnChanged(nameof(Visible))]
|
||||
private void OnVisibleChanged(OnChangedData onChangedData)
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace Netick.Samples.Bomberman
|
||||
[Networked]
|
||||
public int Score { get; set; } = 0;
|
||||
[Networked]
|
||||
public bool Alive { get; set; } = true;
|
||||
public NetworkBool Alive { get; set; } = true;
|
||||
|
||||
[Networked(relevancy: Relevancy.InputSource)]
|
||||
public int MaxBombs { get; set; } = 1;
|
||||
|
||||
Reference in New Issue
Block a user