roeas / roeas.github.io

My blog
https://roeas.github.io/
0 stars 0 forks source link

【Archive】Make Your First Game - Hexo #5

Open roeas opened 1 month ago

roeas commented 1 month ago

https://roeas.github.io/2021/08/12/MakeYourFirstGame/

角色控制,包括移动与多段跳 朝向 1234float forward = Input.GetAxisRaw("Horizontal");// 返回-1,0,1if (forward != 0) { transform.localScale = new Vector3(forward, 1, 1);} 移动 1234567891011public float