rabidus-test/Assets/PlayerInputHandler.cs

24 lines
440 B
C#
Raw Permalink Normal View History

2023-10-18 11:59:26 +03:00
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class PlayerInputHandler : MonoBehaviour
{
[SerializeField]
private PlayerInputReference _playerInput;
public bool Boost => _playerInput.Boost();
public float Horizontal => _playerInput.Horizontal();
private void Awake()
{
Init();
}
private void Init()
{
_playerInput.Init();
}
}