예제 #1
0
 public PlayingSound(ISoundPlayback playback, int startFrame, bool ui)
 {
     Playback   = playback;
     StartFrame = startFrame;
     UI         = ui;
     m_refCount = 1;
 }
예제 #2
0
 private ISoundPlayback StorePlayback(ISoundPlayback playback)
 {
     if (playback != null)
     {
         // Init sound position/range here
         m_sounds.Add(playback);
     }
     return(playback);
 }
        //################
        //##    MONO    ##
        //################

        private void Awake()
        {
            mSound = GetComponent <ISoundPlayback>();
        }