iOS怎么调试h5
发布网友
发布时间:2022-04-29 15:07
我来回答
共1个回答
热心网友
时间:2023-09-11 05:32
void Update()
{
TestKey();
}
private void TestKey()
{
if (Input.GetKey(mKeyRight) || Input.GetKey(mKeyLeft) || Input.GetKey(mKeyBackward) || Input.GetKey(mKeyForward) || Input.GetKeyDown(mKeyRight) || Input.GetKeyDown(mKeyLeft) || Input.GetKeyDown(mKeyBackward) || Input.GetKeyDown(mKeyForward))
{
person_armature.animation.Play("Walking");
}//
else
{
person_armature.animation.Play("standing");
}//
}//