Exemplo n.º 1
0
        //[MenuItem("Window/Simulation")]
        public static void Init(IGameMath gameMath)
        {
            controller = new SimulationController();
            modelData  = new SimulationModelData();
            math       = gameMath;

            SimulationView window = (SimulationView)EditorWindow.GetWindow(typeof(SimulationView));

            window.Initialize(controller, modelData);
            window.Show();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Initialize the view with the controller and model data.
 /// </summary>
 /// <param name="controller">The simulation controller.</param>
 /// <param name="modelData">The data needed to display.</param>
 public void Initialize(SimulationController controller, ISimulationModelData modelData)
 {
     Controller  = controller;
     ModelData   = modelData;
     initialized = true;
 }