Ejemplo n.º 1
0
    void Start()
    {
                #if UNITY_IPHONE
        GameCenterLogin();

        if (reklamyok == 0)
        {
            adinit();
        }
                #endif
        SoundLevel();
        anim = Hero.GetComponent <Animator>();
        //engelekle();
        controller  = Hero.GetComponent <CharacterController>();
        audiosource = GetComponent <AudioSource>();
        DilAyarla();
        googleAnalytics.LogScreen("Open");
        GameObject.Find("Clouds").SendMessage("CloudAdd", SendMessageOptions.DontRequireReceiver);
        int mevcutcharacter = PlayerPrefs.GetInt("mevcutcharacter");
        GameObject.Find("hero(Clone)").transform.FindChild("Box006").transform.GetComponent <SkinnedMeshRenderer>().GetComponent <Renderer>().materials[0].mainTexture = GameObject.Find("herosecim0").GetComponent <CharacterSecim>().textures[mevcutcharacter];


        /*ShareScoreOnFB();*/
        //ShareToTwitter("asdsa","http://itunes.apple.com/app/dire-wolf/id951209344","");
    }
Ejemplo n.º 2
0
    public void trackScreen(string screenId)
    {
        /*
         * if (useGameAnalytics) {
         *      GA.API.Design.NewEvent("navigation:screen:" + screenId);
         * }
         */

        if (!trackingEnabled)
        {
            return;
        }

        if (loggingEnabled)
        {
            Debug.Log("TRACKING :: Screen : Screen id [" + screenId + "]");
        }
        if (useGoogleAnalytics && googleAnalyticsTracker != null)
        {
            googleAnalyticsTracker.LogScreen(screenId);

            // //Builder Hit with all App View parameters (all parameters required):
            //googleAnalytics.LogScreen(new AppViewHitBuilder() .SetScreenName("Main Menu"));
        }
        if (useUnityAnalytics)
        {
            trackUACustomEvent("event.navigation.screen", new Dictionary <string, object> {
                { "id", screenId }
            });
        }
    }
Ejemplo n.º 3
0
    void Start()
    {
        googleAnalytics.LogScreen(nomScene);

        /*googleAnalytics.LogScreen(new AppViewHitBuilder()
         *                        .SetScreenName(nomScene));*/
    }
Ejemplo n.º 4
0
 void Start()
 {
     googleAnalytics = GameObject.FindGameObjectWithTag("GoogleAnalyticsObject").GetComponent<GoogleAnalyticsV3>();
     string screenName = gameObject.name;
     if(screenName.IndexOf("(Clone)") > 0 ) screenName = screenName.Substring(0, screenName.IndexOf("(Clone)"));
     googleAnalytics.LogScreen(new AppViewHitBuilder().SetScreenName(screenName));
     GameObject.Find("GM").GetComponent<SoundControl>().CheckSoundState();
 }
Ejemplo n.º 5
0
    void Start()
    {
        levelManager = new LevelManager();
        populate();
        int playerId = PlayerPrefs.GetInt("playerId");

        googleAnalytics.LogScreen("Player: " + playerId + ", level select screen");
    }
Ejemplo n.º 6
0
    public void ShowView(IAnimatedView view, ShowMode mode = ShowMode.ReplaceTop)
    {
        if (currentView == null)
        {
            // we assume this is the first time we are showing a view, so just to be safe hide the other views...
            for (int i = 0; i < views.Length; i++)
            {
                SetViewActive(views[i], false);
            }
        }

        if (view == currentView)
        {
            return;
        }

        if (transitionPending)
        {
            if (Debug.isDebugBuild)
            {
                Debug.Log("Show(view) request was queue due to pending transition: " + view.Name);
            }

            // store to call when the pending transition is done, this over-writes with the latest request on purpose
            nextView         = view;
            nextViewShowMode = mode;
            return;
        }
        else
        {
            nextView = null;
        }

        if (Debug.isDebugBuild)
        {
            Debug.Log("Beginning view transition: " + view.Name);
        }

        if (mode == ShowMode.ReplaceTop && viewStack.Count > 1)
        {
            viewStack.Pop();
        }

        viewStack.Push(view);

        googleAnalytics.LogScreen(view.Name);

        // Fire the view change event immediately after the view is pushed onto
        // the stack. This updates the InPreview and InLibrary properties
        // without waiting for the view to actually transition.
        if (ViewChanged != null)
        {
            ViewChanged();
        }

        StartCoroutine(TransitionView(currentView, view, corssfadePercentage));
    }
Ejemplo n.º 7
0
    void Awake()
    {
        Debug.Log("AppMaster: Awake");

        if (instance == null)
        {
            instance = this;
        }
        if (googleAnalytics != null)
        {
            googleAnalytics.LogScreen(currentScene);
        }

        // keep the gameObject otherwise this
        // instance won't exist
        DontDestroyOnLoad(gameObject);
        DontDestroyOnLoad(googleAnalytics);
    }
Ejemplo n.º 8
0
    // Use this for initialization
    void Start()
    {
        splashImage = gameObject.GetComponent <Image> ();
        DontDestroyOnLoad(this);

        googleAnalytics.StartSession();
        googleAnalytics.LogScreen("Splash");
        googleAnalytics.DispatchHits();
        //googleAnalytics.
    }
Ejemplo n.º 9
0
 public void LogScreen(string screenName)
 {
     if (isAnalyticsEnabled && googleAnalytics != null)
     {
         try {
             googleAnalytics.LogScreen(screenName);
         } catch (System.Exception exception) {
             //Debug.Log(exception);
         }
     }
 }
Ejemplo n.º 10
0
    // Use this for initialization
    void Start()
    {
        PlayerPrefs.SetInt("playerId", UnityEngine.Random.Range(1, Int32.MaxValue));
        MusicScript.music.play("Sounds/MenuMusic");
        // Get screen positions en calculate usefull points
        bottomLeft = cam.ScreenToWorldPoint(new Vector3(0f, 0f, 0f));
        topRight   = cam.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height, 0f));

        screenfitBackground();
        int playerId = PlayerPrefs.GetInt("playerId");

        googleAnalytics.LogScreen("Player: " + playerId + ", Main Menu");
    }
Ejemplo n.º 11
0
    public void trackScreen(string screenId)
    {
        /*
         * if (useGameAnalytics) {
         *      GA.API.Design.NewEvent("navigation:screen:" + screenId);
         * }
         */
        if (useGoogleAnalytics && googleAnalyticsTracker != null)
        {
            googleAnalyticsTracker.LogScreen(screenId);

            // //Builder Hit with all App View parameters (all parameters required):
            //googleAnalytics.LogScreen(new AppViewHitBuilder() .SetScreenName("Main Menu"));
        }
        if (useUnityAnalytics)
        {
            trackUACustomEvent("navigation_screen", "id", screenId);
        }
    }
Ejemplo n.º 12
0
    void Start()
    {
        startTime  = Time.time;
        isGameOver = false;

        MusicScript.music.play(getLevelManager().getCurrentLevel().musicFileName);

        if (GameSetup.debugMode)
        {
            Debug.Log(levelManager.currentLevelIndex);
        }
        // !!! f***s up all offsets - DO NOT USE !!!   => set in project settings instead
        //Screen.orientation = ScreenOrientation.LandscapeLeft;

        menuBarSize = 2 * (mainCam.ScreenToWorldPoint(new Vector3(Screen.width, Screen.height, 0f)).x -
                           (panel.GetComponent <RectTransform>().position).x);

        // hide tutorialsprite
        tutorialSprite.GetComponent <Renderer>().enabled = false;
        // hide level complete sprite and game over sprite
        setUpLevelComplete();
        setUpGameOver();

        // Move each wall to its edge location
        setUpWalls();

        // Move player to its start location
        setUpPlayer();

        // Create game grid
        generateGrid();

        // Set the level background
        bgManager.setBackground(levelManager.currentLevelIndex + 1);

        progress.text  = "0/" + (int)(levelManager.getCurrentLevel().percentage);
        movesText.text = "0/" + levelManager.getCurrentLevel().nbOfMoves;

        int playerId = PlayerPrefs.GetInt("playerId");

        googleAnalytics.LogScreen("Player: " + playerId + ", level screen: " + levelManager.currentLevelIndex);
    }
Ejemplo n.º 13
0
    void Start()
    {
        gameManager = GetComponent <GameManager> ();

        googleAnalytics.LogScreen("Start Up - No Plays");
    }
Ejemplo n.º 14
0
 public void SetScreen(string screenName)
 {
     googleAnalytics.LogScreen(screenName);
 }
Ejemplo n.º 15
0
 // Use this for initialization
 void Start()
 {
     gav3.LogScreen(Application.loadedLevelName);
 }
Ejemplo n.º 16
0
 void OnLevelWasLoaded(int level)
 {
     analytic.LogScreen("screen_" + level);
 }
Ejemplo n.º 17
0
 void Start()
 {
     //AndroidAdMobController.instance.Init("ca-app-pub-7242500596489894/3891963164");
     GA.LogScreen("test");
 }
Ejemplo n.º 18
0
 public void ShowLogScreenMenu()
 {
     m_myAnalytics.LogScreen("Menu Game");
 }