コード例 #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);
        }
コード例 #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);
        }
コード例 #3
0
 public static TweenAudio SetToPitch(this TweenAudio tween, float pitch)
 {
     tween.To = Util.MakePair(tween.To.Value, pitch);
     return(tween);
 }
コード例 #4
0
 public static TweenAudio SetFromPitch(this TweenAudio tween, float pitch)
 {
     tween.From = Util.MakePair(tween.From.Key, pitch);
     return(tween);
 }
コード例 #5
0
 public static TweenAudio SetToVolume(this TweenAudio tween, float volume)
 {
     tween.To = Util.MakePair(volume, tween.To.Value);
     return(tween);
 }
コード例 #6
0
 public static TweenAudio SetFromVolume(this TweenAudio tween, float volume)
 {
     tween.From = Util.MakePair(volume, tween.From.Value);
     return(tween);
 }
コード例 #7
0
        public static TweenAudio Audio(GameObject owner, float duration)
        {
            var tween = new TweenAudio(owner, duration);

            return(tween);
        }