private float limite = -20; //Limite da tela // Use this for initialization void Start() { heroi_move_script = GameObject.Find("ninjaPlayer").GetComponent <heroi_move>(); }
// Start is called before the first frame update void Start() { heroi_move_script = GameObject.Find("ninjaPlayer").GetComponent <heroi_move>(); InvokeRepeating("SpawnObstacle", startDelay, repeatRate); //Chama o m�todo "SpawnObstacle" a partir de X segundos e cada Y segundos }