当前位置:网站首页>Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
Unity writes a character controller. The mouse controls the screen to shake and the mouse controls the shooting
2022-07-04 02:27:00 【LiPing122335】
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class two: MonoBehaviour {
public GameObject _prefabBullet;
private float _angleSpeed = 120f;
void Update()
{
float eularY = Input.GetAxis("Mouse X") * _angleSpeed * Time.deltaTime;
transform.Rotate(new Vector3(0, eularY, 0));
if (Input.GetMouseButtonDown(0))
{
Instantiate(_prefabBullet, transform.position, transform.rotation);
}
}
}
边栏推荐
- What are the conditions for the opening of Tiktok live broadcast preview?
- [leetcode daily question] a single element in an ordered array
- STM32 key content
- The "message withdrawal" of a push message push, one click traceless message withdrawal makes the operation no longer difficult
- Buuctf QR code
- C learning notes: C foundation - Language & characteristics interpretation
- Crawler practice website image batch download
- What are the main investment products of bond funds and what are they
- Global and Chinese market of small batteries 2022-2028: Research Report on technology, participants, trends, market size and share
- ZABBIX API batch delete a template of the host
猜你喜欢
![After listening to the system clear message notification, Jerry informed the device side to delete the message [article]](/img/0c/52816b75eb702c7c63966578ab4969.jpg)
After listening to the system clear message notification, Jerry informed the device side to delete the message [article]

16. System and process information

Advanced learning of MySQL -- Application -- index

Dans la recherche de l'intelligence humaine ai, Meta a misé sur l'apprentissage auto - supervisé

Yyds dry goods inventory override and virtual of classes in C

Résumé: entropie, énergie libre, symétrie et dynamique dans le cerveau

Libcblas appears when installing opencv import CV2 so. 3:cannot open shared object file:NO such file or directory
![Jerry's watch listens to the message notification of the target third-party software and pushes the message to the device [article]](/img/8b/ff062f34d36e1caa9909c8ab431daf.jpg)
Jerry's watch listens to the message notification of the target third-party software and pushes the message to the device [article]

MySQL workbench use

Redis transaction
随机推荐
Example 073 square sum value judgment programming requires the input of a and B, if a ²+ b ² If the result of is greater than 100, a is output ²+ b ² Value, otherwise output the result of a + B.
Solve the problem that the tabbar navigation at the bottom of vantui does not correspond to the page (window.loading.hash)
Measurement fitting based on Halcon learning [4] measure_ arc. Hdev routine
Description of setting items of Jerry [chapter]
The reasons why QT fails to connect to the database and common solutions
Design and implementation of redis 7.0 multi part AOF
[leetcode daily question] a single element in an ordered array
I don't know why it can't run in the project and how to change it
String & memory function (detailed explanation)
A. ABC
Global and Chinese markets of advanced X-ray inspection system (Axi) in PCB 2022-2028: Research Report on technology, participants, trends, market size and share
[Yugong series] February 2022 attack and defense world advanced question misc-83 (QR easy)
Create template profile
Talking about custom conditions and handling errors in MySQL Foundation
Small program graduation project based on wechat video broadcast small program graduation project opening report function reference
The automatic control system of pump station has powerful functions and diverse application scenarios
The latest analysis of hoisting machinery command in 2022 and free examination questions of hoisting machinery command
Neo4j learning notes
A fan summed up so many interview questions for you. There is always one you need!
Yyds dry goods inventory it's not easy to say I love you | use the minimum web API to upload files