Exemple #1
0
    void Start()
    {
        this.rb = GetComponent <Rigidbody>();

        this.speed     = 4f;
        this.jumpForce = 1f;
        this.direction = new Vector3(Random.Range(-1f, 1f), 0f, Random.Range(-1f, 1f));

        this.player = GameObject.Find("Player");



        //enregistrement auprès de l'enveloppe
        if (enveloppeAnimation)
        {
            enveloppeAnimation.Enregistrer(Animation);
        }
    }
Exemple #2
0
    public virtual void Start()
    {
        //ou bien récupération si on le crée dans l'inspecteur
        oscillo = gameObject.GetComponent <Hv_oscilloSix_AudioLib>();


        if (enveloppeGain)
        {
            enveloppeGain.Enregistrer(setGain);
        }
        if (enveloppeNbHarmo)
        {
            enveloppeNbHarmo.Enregistrer(SetNbHarmoniques);
        }
        if (enveloppeMidFreq)
        {
            enveloppeMidFreq.Enregistrer(SetMidFreq);
        }
    }