public void Win(float time, string username) { DataLoader dl = GetComponent <DataLoader>(); dl.CreateNewUserScore(username, (int)time); timer.gameObject.SetActive(false); }