Ejemplo n.º 1
0
        // Use this for initialization
        void Start()
        {
            m_fluidSolver = gameObject.AddComponent <FluidSolver>() as FluidSolver;
            m_fluidSolver.Setup(width, heigth, true, 0.03f);
            m_fluidSolver.SetViscosity(m_viscosity);
            m_fluidSolver.SetBuoyancy(m_smokeBuoyancy);
            m_fluidSolver.SetFadeSpeed(m_fadeSpeed);

            m_fluidDrawer = gameObject.AddComponent <FluidDrawer>() as FluidDrawer;
            m_fluidDrawer.Setup(m_fluidSolver);
            m_fluidDrawer.SetDrawMode(m_drawMode);
            m_fluidDrawer.SetTransparancy(m_transparency);
        }
Ejemplo n.º 2
0
        public void Setup(FluidSolver fluidSolver)
        {
            m_fluidSolver = fluidSolver;

            _CreateGUI();
        }