From ffda610f0d4a1e25adba6dfdc30a5df57d10737b Mon Sep 17 00:00:00 2001 From: MichalPetryka <35800402+MichalPetryka@users.noreply.github.com> Date: Wed, 27 Feb 2019 14:27:53 +0100 Subject: [PATCH] Use nameof expression (#468) --- Assets/Mirror/Examples/Basic/Scripts/Player.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Assets/Mirror/Examples/Basic/Scripts/Player.cs b/Assets/Mirror/Examples/Basic/Scripts/Player.cs index ff95f575d..dcdb7e344 100644 --- a/Assets/Mirror/Examples/Basic/Scripts/Player.cs +++ b/Assets/Mirror/Examples/Basic/Scripts/Player.cs @@ -1,4 +1,4 @@ -using System.Collections; +using System.Collections; using System.Collections.Generic; using UnityEngine; using Mirror; @@ -18,7 +18,7 @@ public class Player : NetworkBehaviour public override void OnStartServer() { base.OnStartServer(); - InvokeRepeating("UpdateData", 1, 1); + InvokeRepeating(nameof(UpdateData), 1, 1); } public void UpdateData() @@ -34,4 +34,4 @@ public void Update() text.text = string.Format("Player {0}\ndata={1}", netId, data); } } -} \ No newline at end of file +}