Example #1
0
 private void SetTutorialActive(Mechanic mechanic)
 {
     _currentInputDevice = InputChecker.GetInputType();
     _keyboardMove.SetActive(mechanic == Mechanic.Move && _currentInputDevice == InputChecker.InputType.MouseKeyboard);
     _gamePadMove.SetActive(mechanic == Mechanic.Move && _currentInputDevice == InputChecker.InputType.Controller);
     _keyboardDash.SetActive(mechanic == Mechanic.Dash && _currentInputDevice == InputChecker.InputType.MouseKeyboard);
     _gamePadDash.SetActive(mechanic == Mechanic.Dash && _currentInputDevice == InputChecker.InputType.Controller);
 }
Example #2
0
 void Start()
 {
     _currentInputDevice = _defaultInputDevice;
 }