// Use this for initialization void Start() { GO = FindObjectOfType <GenerateObstacles>(); PM = FindObjectOfType <PlayerMovement>(); StartCoroutine(UpdateTime()); }
// 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); }
void Start() { rb = GetComponent <Rigidbody2D>(); trans = GetComponent <Transform>(); obstScript = GameObject.Find("Obstacles").GetComponent <GenerateObstacles>(); }