protected void Update() { if (Time.timeScale == 0) { return; } mHorizontal = (int)Input.GetAxisRaw("Horizontal"); if (Input.GetKeyDown(mKeyJump)) { CallOnJump.SafeInvoke(); } else if (Input.GetKeyDown(mKeySlide)) { CallOnSlide.SafeInvoke(); } else if (Input.GetKeyDown(mKeyItem_1)) { CallOnItem_1.SafeInvoke(); } else if (Input.GetKeyDown(mKeyItem_2)) { CallOnItem_2.SafeInvoke(); } //UpdateScreenSlide(); }
public void OnClickBtnJump() { CallOnJump.SafeInvoke(); }