Fix DisableInput bug
This commit is contained in:
parent
186c84ee62
commit
77c2de6083
@ -221,7 +221,7 @@ namespace NeonTea.Quakeball.Players {
|
||||
|
||||
/// <summary>Called when this Player is respawned, after dying.</summary>
|
||||
public void Respawn(Vector3 location) {
|
||||
if (Net.Singleton.Instance != null && Net.Singleton.Instance.LocalPlayer.Id == NetId) {
|
||||
if (Net.Singleton.Instance != null && Net.Singleton.Instance.LocalPlayer.Id == NetId && IsDead) {
|
||||
GameObject.FindGameObjectWithTag("DeadScreen").GetComponent<DeadScreen>().Open = false;
|
||||
Net.Singleton.Instance.LocalPlayer.Controlled.GetComponent<LocalPlayer>().DisableInput -= 1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user