浏览代码

Fixed Possible Broken Cases

/main
Thomas ICHÉ 5 年前
当前提交
69cca95c
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 6
      Runtime/Controllers/FirstPersonController.cs

6
Runtime/Controllers/FirstPersonController.cs


public void OnValidate()
{
if (m_Controller == null)
m_Controller = GetComponent<CharacterController>();
m_Camera.transform.localPosition = new Vector3(0, PlayerHeight, 0);
if(m_Camera != null)
m_Camera.transform.localPosition = new Vector3(0, PlayerHeight, 0);
}
public void UpdateRotation()

正在加载...
取消
保存