Exemplo n.º 1
0
        public static TweenAudio AudioTo(GameObject owner, float volume, float pitch, float duration)
        {
            var tween = new TweenAudio(owner, duration);

            tween.To = Util.MakePair(volume, pitch);
            return(tween);
        }
Exemplo n.º 2
0
        public static TweenAudio Audio(GameObject owner, float from_volume, float from_pitch, float to_volumne, float to_pitch, float duration)
        {
            var tween = new TweenAudio(owner, duration);

            tween.From = Util.MakePair(from_volume, from_pitch);
            tween.To   = Util.MakePair(to_volumne, to_pitch);
            return(tween);
        }
Exemplo n.º 3
0
 public static TweenAudio SetToPitch(this TweenAudio tween, float pitch)
 {
     tween.To = Util.MakePair(tween.To.Value, pitch);
     return(tween);
 }
Exemplo n.º 4
0
 public static TweenAudio SetFromPitch(this TweenAudio tween, float pitch)
 {
     tween.From = Util.MakePair(tween.From.Key, pitch);
     return(tween);
 }
Exemplo n.º 5
0
 public static TweenAudio SetToVolume(this TweenAudio tween, float volume)
 {
     tween.To = Util.MakePair(volume, tween.To.Value);
     return(tween);
 }
Exemplo n.º 6
0
 public static TweenAudio SetFromVolume(this TweenAudio tween, float volume)
 {
     tween.From = Util.MakePair(volume, tween.From.Value);
     return(tween);
 }
Exemplo n.º 7
0
        public static TweenAudio Audio(GameObject owner, float duration)
        {
            var tween = new TweenAudio(owner, duration);

            return(tween);
        }