Exemplo n.º 1
0
    void Awake()
    {
        //Physics.gravity = new Vector3(0, Physics.gravity.y * gravityRatio, 0);
        Vector3 screenLeft = cameraMain.ScreenToWorldPoint(Vector3.zero);

        _playerMinX    = screenLeft.x;
        _touchs        = new Hashtable();
        _colorNewScore = new Color(255f / 255f, 228f / 255f, 11f / 255f);
        // recommended for debugging:
        //PlayGamesPlatform.DebugLogEnabled = true;

        // Activate the Google Play Games platform
        PlayGamesPlatform.Activate();
        buttonGooglePlus.setEnabled(false);
    }