public void OnLaunchEvent(FishLauncher.Data data, Launcher <FishLauncher.Data> .LaunchEvent levent)
        {
            switch (levent)
            {
            case FishLauncher.LaunchEvent.Init:
            {
                this.problem = new FishSimulator.ControllerProblem();
                this.delta   = new FishSimulator.Delta();

                //this.simulator = new FishSimulator(this.problem, this.delta);
                this.simulator = this.GetComponent <FishSimulator>();
                this.simulator.OnInit(this.problem, this.delta);
                this.simulator.TryToRun();
            }
            break;

            case FishLauncher.LaunchEvent.DeInit:
            {
                // this.simulator.Dispose();
            }
            break;

            default:
                break;
            }
        }
Ejemplo n.º 2
0
        public void OnLaunchEvent(FishLauncher.Data data, Launcher <FishLauncher.Data> .LaunchEvent levent)
        {
            switch (levent)
            {
            case FishLauncher.LaunchEvent.Init:
            {
                this.Init();
            }
            break;

            default:
                break;
            }
        }
Ejemplo n.º 3
0
        public void OnLaunchEvent(FishLauncher.Data data, Launcher <FishLauncher.Data> .LaunchEvent levent)
        {
            switch (levent)
            {
            case FishLauncher.LaunchEvent.Init:
            {
                this.sensorableObjectsList.Clear();
                this.sensorableObjectsList.AddRange(ObjectTool.FindAllObject <ISensorableObject>());
                this.SetupUser();
            }
            break;

            default:
                break;
            }
        }