public override void OnStartLocalPlayer() { isHost = PlayerSingleton.Instance.isHost; playerName = PlayerSingleton.Instance.playerName; gameObject.name = playerName; PlayerSingleton.Instance.player = this; lobbyScript.SetPlayer(this); base.OnStartLocalPlayer(); }