Last active
November 3, 2021 21:33
-
-
Save Hkazanci93/f206de7003bbf0c54af73e526006e7ce 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