Exemplo n.º 1
0
    void Start()
    {
        manager   = gameObject.GetComponent <mainManager> ();
        uimanager = gameObject.GetComponent <guiManager> ();
        generator = gameObject.GetComponent <enemyGenerator> ();


        if (GameObject.Find("missionCollector") != null)
        {
            logger = GameObject.Find("missionCollector").GetComponent <missionLog> ();
        }
        if (Comers != null)
        {
        }
        Comers           = GameObject.Find("comers").GetComponent <comersScript> ();
        deathmanager     = gameObject.transform.Find("deathController").GetComponent <deathControl> ();
        levelTime        = manager.levelTime;
        manager.isPaused = true;
        uimanager.startl();

        NGUITools.SetActive(points.gameObject, false);



        if (GoogleAnalytics.instance)
        {
            GoogleAnalytics.instance.LogScreen("Cat Game Menu");
        }
    }
Exemplo n.º 2
0
    // Use this for initialization
    void Start()
    {
        //	counter = GameObject.Find("UI Root/counter").GetComponent<UILabel>();
        comers = GameObject.Find("comers").GetComponent <comersScript>();

        AdMobAndroid.requestInterstital("ca-app-pub-4603016145025872/4275007740");
    }