Beispiel #1
0
 public int Add(ActorNode2 sn)
 {
     if (IndexOf(sn.sceneNode.Name) > 0)
     {
         throw new InvalidOperationException("A ActorNode with the name \"" + sn.sceneNode.Name + "\" already exists.");
     }
     lock (allActorNodes)
     {
         return(allActorNodes.Add(((ActorNode2)sn)));
     }
 }
Beispiel #2
0
        public void UpdateActor(float DeltaTime, string ActorNodeName, Actor src)
        {
            int i = this.IndexOf(ActorNodeName);

            if (i < 0)
            {
                return;
            }
            if (allActorNodes[i] == null)
            {
                return;
            }
            ActorNode2 actorNode = ((ActorNode2)allActorNodes[i]);

            if (actorNode == null)
            {
                return;
            }
            actorNode.Update2(DeltaTime, src);
        }
Beispiel #3
0
 public int Add(ActorNode2 sn)
 {
     if (IndexOf(sn.sceneNode.Name) > 0) throw new InvalidOperationException("A ActorNode with the name \"" + sn.sceneNode.Name + "\" already exists.");
     lock (allActorNodes)
     {
         return allActorNodes.Add(((ActorNode2)sn));
     }
 }