void Start()
 {
     Debug.Log("start unity demo-------------");
     game = GoogleGame.Instance();
     game.gameEventHandler += onGameEvent;
     Admob.Instance().initAdmob("ca-app-pub-3940256099942544/2934735716", "ca-app-pub-3940256099942544/4411468910");
 }
    // Use this for initialization
    void Start()
    {
        game = GoogleGame.Instance();
        game.gameEventHandler += onGameEvent;

        adFlag    = true;
        audioSrce = GetComponent <AudioSource>();
        highScore = PlayerPrefs.GetInt("highscore", highScore);
        gameTime  = PlayerPrefs.GetInt("gameTime", (int)gameTime);
        swipeTime = PlayerPrefs.GetInt("swipeTime", swipeTime);

        isGameOver          = false;
        ct                  = 0;
        timer               = 30;
        sendingObject       = ct;
        startPositionToSort = new Vector3(0, 1, 0);
        sendPosition        = new Vector3(0, 1, 0);
        MakeList();
        Sort();
        sendingObject          = ct;
        playAgainButton.active = false;
        homePageButton.active  = false;
        resumeButton.active    = false;
        initAdmob();

        Admob.Instance().showBannerRelative(AdSize.SmartBanner, AdPosition.TOP_CENTER, 0);
    }
 void onGoogleEvent(string eventName, string data)
 {
     Debug.Log(eventName + "----***-------" + data);
     if (eventName == GoogleServiceEvent.onSignInSuccess)
     {
         game = GoogleGame.Instance();
         game.gameEventHandler    += onGameEvent;
         game.snapshotDataHandler += onSnapshotLoaded;
         game.rtgameEventHandler  += onRTGameEvent;
     }
 }
    // Use this for initialization

    void Start()
    {
        game = GoogleGame.Instance();
        game.gameEventHandler += onGameEvent;
        game.login(true, false);



        spawnPoint = new Vector3(4, 0, 2);
        i          = 0;
        StartCoroutine(SpawnS());
    }