private void Test() { if (JCS_Input.GetKey(KeyCode.V)) { Die(); } }
protected override void Update() { base.Update(); Stand(); if (JCS_Input.GetKeyDown(KeyCode.LeftAlt) || JCS_Input.GetKeyDown(KeyCode.RightAlt)) { Jump(); } if (JCS_Input.GetKey(KeyCode.Space)) { Attack(); } else if (JCS_Input.GetKey(KeyCode.UpArrow)) { ClimbOrTeleport(); } else if (JCS_Input.GetKey(KeyCode.RightArrow)) { MoveRight(); } else if (JCS_Input.GetKey(KeyCode.LeftArrow)) { MoveLeft(); } else if (JCS_Input.GetKey(KeyCode.DownArrow)) { Prone(); } }
private void Update() { if (JCS_Input.GetKey(KeyCode.D)) { Vector3 newPos = this.mPanelRectTransform.localPosition; newPos.x += 10; this.mPanelRectTransform.localPosition = newPos; } if (JCS_Input.GetKey(KeyCode.A)) { Vector3 newPos = this.mPanelRectTransform.localPosition; newPos.x -= 10; this.mPanelRectTransform.localPosition = newPos; } if (JCS_Input.GetKey(KeyCode.S)) { Vector3 newPos = this.mPanelRectTransform.localPosition; newPos.y -= 10; this.mPanelRectTransform.localPosition = newPos; } if (JCS_Input.GetKey(KeyCode.W)) { Vector3 newPos = this.mPanelRectTransform.localPosition; newPos.y += 10; this.mPanelRectTransform.localPosition = newPos; } FitPushScreen(); }
private void Update() { if (JCS_Input.GetKeyDown(KeyCode.C)) { //this.transform.position = JCS_Mathf.RotatePointY(this.transform.position, mOrigin.transform.position, mAngle); } if (JCS_Input.GetKey(KeyCode.C)) { --angleY; this.transform.position = JCS_Mathf.CirclePositionY( origin.transform.position, angleY, radius, this.transform.position); } if (JCS_Input.GetKey(KeyCode.V)) { ++angleZ; this.transform.position = JCS_Mathf.CirclePositionZ( origin.transform.position, angleZ, radius, this.transform.position); } }
private void PCInput() { switch (mControlIndex) { // player 1 case 0: { if (JCS_Input.GetKey(KeyCode.W)) { Jump(); } if (JCS_Input.GetKeyDown(KeyCode.E)) { ToggleWait(); } } break; // player 2 case 1: { if (JCS_Input.GetKey(KeyCode.UpArrow)) { Jump(); } if (JCS_Input.GetKeyDown(KeyCode.RightControl)) { ToggleWait(); } } break; // player 3 case 2: { if (JCS_Input.GetKey(KeyCode.I)) { Jump(); } if (JCS_Input.GetKeyDown(KeyCode.O)) { ToggleWait(); } } break; // player 4 case 3: { if (JCS_Input.GetKey(KeyCode.Keypad8)) { Jump(); } if (JCS_Input.GetKeyDown(KeyCode.Keypad9)) { ToggleWait(); } } break; } MoveRight(); if (JCS_Input.GetKeyDown(KeyCode.P)) { JCS_SceneManager.instance.LoadScene("RC_LogoScene"); } }