//------------------------------------------------------------------
 public void CreateFlasher()
 {
     // Flasher
     flasher = new Lights(this, "Flasher");
     flasher.Enable();
     Add(flasher);
 }
예제 #2
0
        //------------------------------------------------------------------
        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);
        }
예제 #3
0
        //------------------------------------------------------------------
        public void CreateFlasher()
        {
            flasher = new Lights(this, "Flasher");

            Add (flasher);
        }
예제 #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);
        }
예제 #5
0
파일: Police.cs 프로젝트: damian-666/Escape
        //------------------------------------------------------------------
        public void CreateFlasher()
        {
            flasher = new Lights(this, "Flasher");

            Add(flasher);
        }