|
|
|
|
|
|
|
|
|
|
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() |
|
|
|