コード例 #1
0
ファイル: AudioManager.cs プロジェクト: rafavital/vital-audio
        /// <summary>
        ///   <para>Plays a 2D sound on a given position.</para>
        /// </summary>
        /// <param name="audio">The audio object to be played.</param>
        /// <param name="position">The 2D position where the sound will be played.</param>
        public static void PlaySound(AudioObject audio, Vector2 position)
        {
            var pos = new Vector3(position.x, position.y, 0);

            PlaySound(audio, pos);
        }