// Start is called before the first frame update void Start() { repeatRate = Random.Range(1.0f, 3.0f); InvokeRepeating("SpawnObstacle", startDelay, repeatRate); playerControllerScript = GameObject.Find("Player").GetComponent <P10PlayerController>(); }
// Start is called before the first frame update void Start() { playerControllerScript = GameObject.Find("Player").GetComponent <P10PlayerController>(); }