// Start is called before the first frame update void Start() { playGamesScript.LoginToPlayGames(); // upButton = GameObject.FindGameObjectWithTag("UpButton").GetComponent<Button>(); upButton.onClick.AddListener(() => OnUpButtonClick()); // downButton = GameObject.FindGameObjectWithTag("DownButton").GetComponent<Button>(); downButton.onClick.AddListener(() => OnDownButtonClick()); // leftButton = GameObject.FindGameObjectWithTag("LeftButton").GetComponent<Button>(); leftButton.onClick.AddListener(() => OnLeftButtonClick()); // rightButton = GameObject.FindGameObjectWithTag("RightButton").GetComponent<Button>(); rightButton.onClick.AddListener(() => OnRightButtonClick()); rigidBody = GetComponent <Rigidbody>(); score = 0; PlayerPrefs.SetInt("Score", score); adScript.ShowInterstitialAd(); }