// Use this for initialization
 void Start()
 {
     //m_adManager = GameObject.Find("AdHandler").GetComponent<adManager>();
     m_gui                  = GameObject.Find("GUI").GetComponent <GUIIngame>();
     m_scoring              = GameObject.Find("InGameData").GetComponent <Scoring>();
     m_killerHeight         = -2;
     m_spawnJumperPlatforms = GameObject.Find("Spawner").GetComponent <SpawnJumperPlatforms>();
 }
Пример #2
0
    // Use this for initialization
    void Start()
    {
        GameObject textLiveScore = GameObject.Find("TextLiveScore");

        m_liveScoreRenderer = textLiveScore.GetComponent <MeshRenderer>();
        m_liveScoreMesh     = textLiveScore.GetComponent <TextMesh>();
        m_currentScore      = 0;
        m_lastId            = 0;
        m_guiIngame         = GameObject.Find("GUI").GetComponent <GUIIngame>();
    }