mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
fix smell, use pascal case
This commit is contained in:
parent
effb05e732
commit
3a73a11a55
@ -42,7 +42,7 @@ public class NetworkAnimator : NetworkBehaviour
|
|||||||
int[] transitionHash;
|
int[] transitionHash;
|
||||||
float sendTimer;
|
float sendTimer;
|
||||||
|
|
||||||
bool sendMessagesAllowed
|
bool SendMessagesAllowed
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
@ -81,7 +81,7 @@ void Awake()
|
|||||||
|
|
||||||
void FixedUpdate()
|
void FixedUpdate()
|
||||||
{
|
{
|
||||||
if (!sendMessagesAllowed)
|
if (!SendMessagesAllowed)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
CheckSendRate();
|
CheckSendRate();
|
||||||
@ -140,7 +140,7 @@ bool CheckAnimStateChanged(out int stateHash, out float normalizedTime, int laye
|
|||||||
|
|
||||||
void CheckSendRate()
|
void CheckSendRate()
|
||||||
{
|
{
|
||||||
if (sendMessagesAllowed && syncInterval > 0 && sendTimer < Time.time)
|
if (SendMessagesAllowed && syncInterval > 0 && sendTimer < Time.time)
|
||||||
{
|
{
|
||||||
sendTimer = Time.time + syncInterval;
|
sendTimer = Time.time + syncInterval;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user