Example #1
0
    private float limite = -20; //Limite da tela

    // Use this for initialization
    void Start()
    {
        heroi_move_script = GameObject.Find("ninjaPlayer").GetComponent <heroi_move>();
    }
Example #2
0
    // 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
    }