Use nameof expression (#468)

This commit is contained in:
MichalPetryka 2019-02-27 14:27:53 +01:00 committed by vis2k
parent 0114a36fe1
commit ffda610f0d

View File

@ -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()