Exemple #1
0
        public TransparencyDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myView = null;
        }
        public TransparencyDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myView=null;
        }
 public AboutDialog()
 {
     //
     // Required for Windows Form Designer support
     //
     InitializeComponent();
     //
     // TODO: Add any constructor code after InitializeComponent call
     //
     shell t = new shell();
     t.InitOCCViewer();
     float version = t.GetOCCVersion();
     this.myVersion.Text=this.myVersion.Text+version;
 }
Exemple #4
0
        public Form2()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myView               = new shell();
            myCurrentMode        = CurrentAction3d.CurAction3d_Nothing;
            myCurrentPressedKey  = CurrentPressedKey.CurPressedKey_Nothing;
            myDegenerateModeIsOn = true;
            IsRectVisible        = false;
        }
Exemple #5
0
        public AboutDialog()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            shell t = new shell();

            t.InitOCCViewer();
            float version = t.GetOCCVersion();

            this.myVersion.Text = this.myVersion.Text + version;
        }
Exemple #6
0
    void Update()
    {
        float steer = 100;
        float x     = Input.GetAxis("Horizontal");

        transform.Rotate(0, x * steer * Time.deltaTime, 0);
        float   y = Input.GetAxis("Vertical");
        Vector3 s = y * transform.forward * speed * Time.deltaTime;

        transform.position    -= s;
        rigidbody.velocity     = new Vector3(0, 0, 0);
        gun.transform.rotation = Quaternion.Euler(0, -90, 0);



        if (Input.GetMouseButtonDown(1) || Input.GetKeyDown(KeyCode.K))
        {
            if (Time.time - lastShootTimeShell < shootIntervalShell)
            {
                return;
            }
            Vector3 pos2 = transform.position - transform.forward * 5 + new Vector3(0, 1, 0) * 5;
            if (canMisson)
            {
                GameObject shellcpy = Instantiate(missile, pos2 - transform.forward * 2, gameObject.transform.rotation);//huojiandan
            }
            else
            {
                GameObject shellcpy = Instantiate(shell, pos2, gameObject.transform.rotation);
                shell      shelljb  = shellcpy.GetComponent <shell>();
                shelljb.speed = 20 + speed;
            }

            lastShootTimeShell = Time.time;
        }
    }
Exemple #7
0
        public Form2()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            //
            // TODO: Add any constructor code after InitializeComponent call
            //
            myView = new shell();
            myCurrentMode=CurrentAction3d.CurAction3d_Nothing;
            myCurrentPressedKey=CurrentPressedKey.CurPressedKey_Nothing;
            myDegenerateModeIsOn=true;
            IsRectVisible=false;
        }
Exemple #8
0
 public void SetContext(shell View)
 {
     this.myView.SetAISContext(View);
 }
Exemple #9
0
 public void SetContext(shell View)
 {
     this.myView.SetAISContext(View);
 }
Exemple #10
0
        public App()
        {
            InitializeComponent();

            MainPage = new shell();
        }