-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathInputBehaviour.cs
33 lines (28 loc) · 1.11 KB
/
InputBehaviour.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using UnityEngine;
namespace SALT
{
public class InputBehaviour : MonoBehaviour, InputDetector
{
public virtual void Awake()
{
//Singleton<GameContext>.Instance.UserInputService.InputBegan += InputBegan;
//Singleton<GameContext>.Instance.UserInputService.InputChanged += InputChanged;
//Singleton<GameContext>.Instance.UserInputService.InputEnded += InputEnded;
}
public virtual void OnDestroy()
{
//Singleton<GameContext>.Instance.UserInputService.InputBegan -= InputBegan;
//Singleton<GameContext>.Instance.UserInputService.InputChanged -= InputChanged;
//Singleton<GameContext>.Instance.UserInputService.InputEnded -= InputEnded;
}
public virtual void InputBegan(UserInputService.InputObject inputObject, bool wasProcessed)
{
}
public virtual void InputChanged(UserInputService.InputObject inputObject, bool wasProcessed)
{
}
public virtual void InputEnded(UserInputService.InputObject inputObject, bool wasProcessed)
{
}
}
}