//------------------------------------------------------------------
 public void CreateFlasher()
 {
     // Flasher
     flasher = new Lights(this, "Flasher");
     flasher.Enable();
     Add(flasher);
 }
        //------------------------------------------------------------------
        private void CreateLights()
        {
            brakes = new Lights(this, "Brake");
            brakes.LocalPosition = new Vector2(0, Texture.Height / 2 + 10);
            Add(brakes);

            boost = new Lights(this, "Acceleration");
            boost.LocalPosition = new Vector2(0, -Texture.Height / 2 - 10);
            Add(boost);

            blinker = new Blinker(this, "Blinker");
            Add(blinker);
        }
Beispiel #3
0
        //------------------------------------------------------------------
        public void CreateFlasher()
        {
            flasher = new Lights(this, "Flasher");

            Add (flasher);
        }
Beispiel #4
0
        //------------------------------------------------------------------
        private void CreateLights()
        {
            brakes = new Lights (this, "Brake");
            brakes.LocalPosition = new Vector2 (0, Lenght / 2 + 10);
            Add (brakes);

            boost = new Lights (this, "Acceleration");
            boost.LocalPosition = new Vector2 (0, -Lenght / 2 - 10);
            Add (boost);

            blinker = new Blinker (this, "Blinker");
            Add (blinker);
        }
Beispiel #5
0
        //------------------------------------------------------------------
        public void CreateFlasher()
        {
            flasher = new Lights(this, "Flasher");

            Add(flasher);
        }