The type 'Input' exists in both 'UnityEngine.CoreModule' and 'Unity.Engine.InputLegacyModule'

后端 未结 0 1169
清酒与你
清酒与你 2020-12-03 16:49

I am getting an error in this code:

\'\'\' if (Input.GetKey(KeyCode.A)) transform.Rotate(0f, -2f, 0f);

if (Input.GetKey(KeyCode.D)) transform.Rotate(0f, 2f, 0f

相关标签:
回答
  • 消灭零回复
提交回复
热议问题