public void ShowAchievements() { if (am.isSignedIn == true) { PlayGamesScript.ShowAchievementsUI(); } else { pg.ToActivate(); } }
// Use this for initialization void Start() { am = GameObject.FindGameObjectWithTag("AM").GetComponent <AudioManager> (); pg = GameObject.FindGameObjectWithTag("PG").GetComponent <PlayGamesScript> (); if (am.askedOnce == false) { pg.ToActivate(); } }