void UnChangeKey(Nescafe.Controller.Button pKey) { if (lastKey == pKey) { UNES.PressButton(lastKey, false); lastKey = Nescafe.Controller.Button.No; } }
void ChangeKey(Nescafe.Controller.Button pKey) { if (lastKey != Nescafe.Controller.Button.No && lastKey != pKey) { UNES.PressButton(lastKey, false); } lastKey = pKey; if (pKey != Nescafe.Controller.Button.No) { UNES.PressButton(lastKey, true); } }
void Jump(bool isTapped) { if (isTapped && !jumped) { #if UNITY_EDITOR Debug.Log("Jump"); #endif UNES.PressButton(Nescafe.Controller.Button.A, true); jumped = true; } if (!isTapped && jumped) { #if UNITY_EDITOR Debug.Log("unJump"); #endif UNES.PressButton(Nescafe.Controller.Button.A, false); jumped = false; } }
void OnDisable() { UNES.PressButton(type, false); }
public void OnPointerUp(PointerEventData eventData) { UNES.PressButton(type, false); }
public void OnPointerDown(PointerEventData eventData) { UNES.PressButton(type, true); }