PlayerId0Fix
This commit is contained in:
parent
178a05079a
commit
9cd3930731
1 changed files with 8 additions and 2 deletions
|
@ -60,11 +60,17 @@ namespace ZoFo.GameCore
|
||||||
};
|
};
|
||||||
AppManager.Instance.InputManager.OnInteract += () =>
|
AppManager.Instance.InputManager.OnInteract += () =>
|
||||||
{
|
{
|
||||||
networkManager.AddData(new UpdateInputInteraction() {PlayerId = AppManager.Instance.client.networkManager.PlayerId });
|
if (AppManager.Instance.client.networkManager.PlayerId > 0)
|
||||||
|
{
|
||||||
|
networkManager.AddData(new UpdateInputInteraction() { PlayerId = AppManager.Instance.client.networkManager.PlayerId });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
AppManager.Instance.InputManager.ShootEvent += () =>
|
AppManager.Instance.InputManager.ShootEvent += () =>
|
||||||
{
|
{
|
||||||
networkManager.AddData(new UpdateInputShoot() { PlayerId = AppManager.Instance.client.networkManager.PlayerId });
|
if (AppManager.Instance.client.networkManager.PlayerId > 0)
|
||||||
|
{
|
||||||
|
networkManager.AddData(new UpdateInputShoot() { PlayerId = AppManager.Instance.client.networkManager.PlayerId });
|
||||||
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue