Created
November 3, 2021 21:40
-
-
Save Hkazanci93/26b809c8ebe924fdb55ded81da1695c3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (lastPing.AddSeconds(30) < DateTime.Now) { | |
isAFK = true; | |
GameManager gameManager = GameObject.Find("GameManager").GetComponent<GameManager>(); | |
gameManager.StartGetLeaderboard(); | |
gameManager.RemovePlayer(this); | |
Destroy(gameObject); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment