Exemple #1
0
 /// <summary>
 ///     Performs action on all scene presences.
 /// </summary>
 /// <param name="action"></param>
 public void ForEachScenePresence(Action <IScenePresence> action)
 {
     if (m_sceneGraph != null)
     {
         m_sceneGraph.ForEachScenePresence(action);
     }
 }
Exemple #2
0
 /// <summary>
 /// Performs action on all scene presences.
 /// </summary>
 /// <param name="action"></param>
 public void ForEachScenePresence(Action <IScenePresence> action)
 {
     lock (Events)
     {
         Events.Add(delegate
         {
             if (m_sceneGraph != null)
             {
                 m_sceneGraph.ForEachScenePresence(action);
             }
         });
     }
 }
Exemple #3
0
 /// <summary>
 ///     Performs action on all scene presences.
 /// </summary>
 /// <param name="action"></param>
 public void ForEachScenePresence(Action <IScenePresence> action)
 {
     AddAsyncEvent(() => m_sceneGraph.ForEachScenePresence(action));
 }