Exemplo n.º 1
0
    // Use this for initialization
    void Start()
    {
        PlayerPrefs.DeleteAll();

        mainCam           = Camera.main;
        camera_controller = FindObjectOfType <CameraController> ();
        tmaker            = gameObject.GetComponent <TurtleMaker> ();
        level_manager     = gameObject.GetComponent <LevelManager> ();
        dataController    = FindObjectOfType <DataController>();
        LvlScreenScript   = LevelScreenObject.GetComponent <LevelScreenScript>();


        level_manager.startLevel();
    }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     mainCam = Camera.main;
     tmaker  = gameObject.GetComponent <TurtleMaker> ();
     gm      = gameObject.GetComponent <GameManager> ();
 }