Ejemplo n.º 1
0
 public void Start()
 {
     nc = NodeController.Instance;
     bp = BaseParameters.Instance;
     eh = EventHandler.Instance;
     diffusion_handler = FindObjectOfType <DiffusionReaction2DFrag>();
     diffusion_handler.SelectedMode     = DiffusionReaction2DFrag.SimulationModes.WormLike;
     diffusion_handler.SimulationShader = diffusion_handler.SimulationShaderTitle;
     ObjectPool.ClearPools();
     ScaledTime.TimeScale = 0.0f;
     StartCoroutine(delayed_Draw());
 }
    public void Start()
    {
        diffusion_handler = Component.FindObjectOfType <DiffusionReaction2DFrag>() as DiffusionReaction2DFrag;
        bp = BaseParameters.Instance;
        nc = NodeController.Instance;
        eh = EventHandler.Instance;

        eh.Sub(Event.EventType.CorruptNode, this);
        eh.Sub(Event.EventType.UpdateDistanceFunction, this);
        eh.Sub(Event.EventType.NodesSpawned, this);
        eh.Sub(Event.EventType.NodeDestroyed, this);
    }