Skip to content

Commit

Permalink
fix(TankTurretBase): Default SyncDir to ClientToServer
Browse files Browse the repository at this point in the history
  • Loading branch information
MrGadget1024 committed Nov 22, 2024
1 parent 1ae7f70 commit 2f38cea
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -192,6 +192,9 @@ protected override void OnValidate()
// NOTE: Do not put objects in DontDestroyOnLoad (DDOL) in Awake. You can do that in Start instead.
protected virtual void Reset()
{
// Ensure syncDirection is Client to Server
syncDirection = SyncDirection.ClientToServer;

if (animator == null)
animator = GetComponentInChildren<Animator>();

Expand Down

0 comments on commit 2f38cea

Please sign in to comment.