fix chest, breakable wall
This commit is contained in:
@@ -5,7 +5,7 @@ public class HammerThrower : MonoBehaviour
|
||||
{
|
||||
[SerializeField] private Transform _spawnPoint;
|
||||
[SerializeField] private GameObject _hammerPrefab;
|
||||
[SerializeField] private float _throwSpeed = 10f;
|
||||
[SerializeField] private float _throwSpeed = 5f;
|
||||
|
||||
private GameObject _currentHammer;
|
||||
private bool _hasHammer = true;
|
||||
|
||||
@@ -23,7 +23,10 @@ public class InputManager : MonoBehaviour
|
||||
|
||||
public void OnEnable()
|
||||
{
|
||||
_actions.Enable();
|
||||
if (_actions != null)
|
||||
{
|
||||
_actions.Enable();
|
||||
}
|
||||
}
|
||||
|
||||
public void OnDisable()
|
||||
|
||||
Reference in New Issue
Block a user