PlayerId0Fix
This commit is contained in:
parent
178a05079a
commit
9cd3930731
1 changed files with 8 additions and 2 deletions
|
@ -59,12 +59,18 @@ namespace ZoFo.GameCore
|
|||
|
||||
};
|
||||
AppManager.Instance.InputManager.OnInteract += () =>
|
||||
{
|
||||
if (AppManager.Instance.client.networkManager.PlayerId > 0)
|
||||
{
|
||||
networkManager.AddData(new UpdateInputInteraction() { PlayerId = AppManager.Instance.client.networkManager.PlayerId });
|
||||
}
|
||||
};
|
||||
AppManager.Instance.InputManager.ShootEvent += () =>
|
||||
{
|
||||
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