Ejemplo n.º 1
0
        public void Init(Scale myScale, AudioElement myElement)
        {
            if (source == null)
            {
                return;
            }
            sourcePitch = source.GetComponent <FXPitch>();
            if (!sourcePitch)
            {
                Debug.LogError("There is no FXPitch on " + source.name);
                return;
            }
            sourcePitch.PitchEvent += new PitchEventHandler(PitchListener);

            this.myScale   = myScale;
            this.myElement = myElement;
        }