Esempio n. 1
0
    // Use this for initialization
    void Start()
    {
        GO = FindObjectOfType <GenerateObstacles>();
        PM = FindObjectOfType <PlayerMovement>();

        StartCoroutine(UpdateTime());
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     distanceTraveled = 0;
     uiManager        = GameObject.Find("UI").GetComponent <UIManager> ();
     obstacleScript   = GameObject.Find("Obstacles").GetComponent <GenerateObstacles>();
 }
 // Start is called before the first frame update
 void Start()
 {
     instance = this;
     gameOverText.SetActive(false);
     gameRestartText.SetActive(false);
 }
Esempio n. 4
0
 void Start()
 {
     rb         = GetComponent <Rigidbody2D>();
     trans      = GetComponent <Transform>();
     obstScript = GameObject.Find("Obstacles").GetComponent <GenerateObstacles>();
 }