Commit ed3b93b2 authored by Trần Huỳnh Phong's avatar Trần Huỳnh Phong
Browse files

Update control

parent d7ed3573
......@@ -122,7 +122,7 @@ namespace Game
if (_lookDir != Vector3.zero)
{
float angle = Mathf.Atan2(_lookDir.x, _lookDir.z) * Mathf.Rad2Deg;
angle = Mathf.Clamp(angle, -90f, 90f);
angle = Mathf.Clamp(angle, -75f, 75f);
//float smoothAngle = Mathf.SmoothDampAngle(transform.eulerAngles.y, angle, ref _turnSmoothTime, _crrLerpTime / _lerpTime);
//transform.rotation = Quaternion.Euler(0f, smoothAngle, 0);
_playerController.RotateTransform.localRotation = Quaternion.Lerp(_playerController.RotateTransform.localRotation,
......
......@@ -29,7 +29,7 @@ namespace Game
private void Start()
{
int crrLevel = Mathf.Clamp(GameManager.CurrentLevel, 1, listLevel.Count - 1);
int crrLevel = GameManager.CurrentLevel % 9;
for (int i = 0; i < listLevel.Count; ++i)
{
if (i == crrLevel) listLevel[i].Active = true;
......
......@@ -707,7 +707,7 @@ PlayerSettings:
gcIncremental: 1
gcWBarrierValidation: 0
apiCompatibilityLevelPerPlatform:
Android: 6
Android: 3
m_RenderingPath: 1
m_MobileRenderingPath: 1
metroPackageName: Template_3D
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment