// GetPlayerAxes public void GetPlayerAxes(float x, float y, TCKTouchPhase tPhase) { if (axesInputType != AxesInputType.Broadcasting) { return; } PlayerMovement(x, y); //Debug.Log( tPhase ); }
// Update TouchPhase private void UpdateTouchPhase() { if (touchDown) { if (touchPosMag == prevTouchPosMag) { touchPhase = TCKTouchPhase.Stationary; } else { touchPhase = TCKTouchPhase.Moved; } } else { touchPhase = TCKTouchPhase.NoTouch; } prevTouchPosMag = touchPosMag; }
private void BindPlayerAxes(float x, float y, TCKTouchPhase tPhase) { PlayerMovement(x, y); //Debug.Log( tPhase ); }
// Control Reset protected virtual void ControlReset() { touchPhase = TCKTouchPhase.Ended; touchId = -1; touchDown = false; }