标签:camera update i++ float get anim animator any for
第三人称,摄像机跟在角色后上方。
void Update () { myCamera.position = transform.position + new Vector3(0, 1.5f, 5); myCamera.LookAt(transform); //if(Input.anyKeyDown) { // for (int i = 0; i < keys.Length; i++) { // if (Input.GetKeyDown(keys[i])) { // animator.SetFloat("AniFlag", i); // return; // } // } //} }
标签:camera update i++ float get anim animator any for
原文地址:http://www.cnblogs.com/guxin/p/unity-camera-follow-and-lookat-player.html