Ejemplo n.º 1
0
        void OnEnable()
        {
            Instance = this;

            this.minSize = new Vector2(width, height);
            this.maxSize = new Vector2(width, height);

            if (CarVersionChecker.IsAdvanceCompressionVersion())
            {
                arrVertexCompressionModes_ = new string[2] {
                    "Box (medium compression)", "Fiber (high compression)"
                };
            }
            else
            {
                arrVertexCompressionModes_ = new string[1] {
                    "Box (medium compression)"
                };
            }

            Controller = CarManager.Instance;
            Controller.Player.pause();

            simulationBaker_ = Controller.SimulationBaker;

            listBodyNode_ = simulationBaker_.listBodyNode_;

            bitArrNeedsBaking_     = simulationBaker_.bitArrNeedsBaking_;
            bitArrNeedsCollapsing_ = simulationBaker_.bitArrNeedsCollapsing_;
        }
Ejemplo n.º 2
0
        void OnEnable()
        {
            Instance = this;

            this.minSize = new Vector2(width, height);
            this.maxSize = new Vector2(width, height);

            Controller = CarManager.Instance;
            Controller.Player.pause();

            simulationBaker_ = Controller.SimulationBaker;

            listBodyNode_      = simulationBaker_.listBodyNode_;
            bitArrNeedsBaking_ = simulationBaker_.bitArrNeedsBaking_;
        }