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; }
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; }
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; }
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; } }
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; }
public void SetContext(shell View) { this.myView.SetAISContext(View); }
public App() { InitializeComponent(); MainPage = new shell(); }