крупный рефакторинг

This commit is contained in:
Vladislav Likhenko 2024-08-10 01:05:38 +03:00
parent a51631152b
commit d4768d590b
3 changed files with 13 additions and 15 deletions

View File

@ -1,6 +1,4 @@
using UnityEngine; using UnityEngine;
using System.Collections;
using UnityEngine.InputSystem;
namespace RootMotion namespace RootMotion
{ {
@ -131,7 +129,7 @@ namespace RootMotion
// delta rotation // delta rotation
if (rotate) if (rotate)
{ {
// var _pass = _rotate.Player.CameraRotation.ReadValue<Vector2>(); // var _pass = _rotate.Player.CameraRotation.ReadValue<Vector2>();
//x += _pass.normalized.x; //x += _pass.normalized.x;
//y = ClampAngle(y +_pass.normalized.y * rotationSensitivity, yMinLimit, yMaxLimit); //y = ClampAngle(y +_pass.normalized.y * rotationSensitivity, yMinLimit, yMaxLimit);
} }

View File

@ -18,8 +18,8 @@ public class Starter : MonoBehaviour
{ {
_timer.text = _starter.ToString(); _timer.text = _starter.ToString();
_dontMovePlayer1.enabled = false; _dontMovePlayer1.DeactivateInput();
_dontMovePlayer2.enabled = false; _dontMovePlayer2.DeactivateInput();
_borders.enabled = true; _borders.enabled = true;
@ -38,8 +38,8 @@ public class Starter : MonoBehaviour
if (_timer != null) if (_timer != null)
{ {
Destroy(_timer.gameObject); Destroy(_timer.gameObject);
_dontMovePlayer1.enabled = true; _dontMovePlayer1.ActivateInput();
_dontMovePlayer2.enabled = true; _dontMovePlayer2.ActivateInput();
_borders.enabled = false; _borders.enabled = false;
} }
} }