Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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