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))); } }
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); }
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)); } }