24 lines
440 B
C#
24 lines
440 B
C#
|
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();
|
||
|
}
|
||
|
}
|