// ------------------ override public bool OnTouchStart(TouchObject touchObj, TouchControl sender, TouchStartType touchStartType) { if (this.touchObj != null) { return(false); } this.touchObj = touchObj; this.touchStartType = touchStartType; this.touchObj.AddControl(this); Vector2 localPos = this.ScreenToOrientedPos(touchObj.screenPosStart, touchObj.cam); this.touchState.OnTouchStart(localPos, localPos, 0, touchObj.IsMouse()); return(true); }
// ------------------ override public bool OnTouchStart(TouchObject touchObj, TouchControl sender, TouchStartType touchStartType) { if (this.touchObj != null) { return(false); } //Debug.LogFormat("----------------Track pad start : {0} : active:{1}", Time.frameCount, this.IsActive()); this.touchObj = touchObj; this.touchStartType = touchStartType; this.touchObj.AddControl(this); Vector2 localPos = this.ScreenToOrientedPos(touchObj.screenPosStart, touchObj.cam); this.touchState.OnTouchStart(localPos, localPos, 0, touchObj); return(true); }