Exemplo n.º 1
0
 /// <summary>
 /// Initializes the whole page. Called before the node is added to the tree by the lesson controller.
 /// </summary>
 public override void InitialiseWith(IMainNode mainNode, ILessonEntity openedLesson)
 {
     CentralParticles = GetNode <CentralParticles>("CentralParticles");
     CentralParticles.Setup();
     EmergencyActors = GetNode <EmergencyActors>("EmergencyActors");
     EmergencyActors.Setup();
     _decoration = GetNode <DecorationNode>("DecorationNode");
     _decoration.Initialise();
 }
 /// <summary>
 /// Called before the simulation is added to the  main tree
 /// </summary>
 public void Setup()
 {
     EmitterCart = GetNode <Cart>("EmitterCart");
     EmitterCart.Setup();
     Emitter = GetNode <EmitterParticles>("EmitterCart/EmitterParticles");
     Emitter.Setup();
     FocusCart = GetNode <Cart>("FocusCart");
     FocusCart.Setup();
     Central = GetNode <CentralParticles>("CentralParticles");
     Central.Setup();
     Discharge       = GetNode <Particles>("DischargeParticles");
     Laser           = GetNode <Particles>("LaserParticles");
     EmergencyActors = GetNode <EmergencyActors>("EmergencyActors");
     EmergencyActors.Setup();
 }