Unity-Technologies/com.unity.multiplayer.samples.bitesize

why m_Thrusting is a NetworkVariable but m_spin is not?

Alexander5421 opened this issue · 2 comments

private NetworkVariable<float> m_Thrusting = new NetworkVariable<float>();
float m_Spin;

m_Thrusting is never used on the client side, what's the point to sync it to clients?

Hi @Alexander5421,
Yes, you're correct. This replicated variable m_Thrusting isn't used client-side, and can be converted to just a float.

We'll get that converted over!

Hi @Alexander5421,

I'm closing this issue as this work has been integrated inside this PR.

Thank you for your contribution!