Answer the question
In order to leave comments, you need to log in
How to adjust finger touch on the mouse?
Now I'm rebuilding on the touch in this way
#if UNITY_EDITOR
void OnMouseDown(){ Ci.OnMouseDownCell(this); }
void OnMouseOver(){ Ci.OnMouseOverCell(this); }
#endif
void Update(){
#if UNITY_EDITOR
#else
if(Input.touchCount > 0){
Touch touch = Input.GetTouch(0);
switch(touch.phase){
case TouchPhase.Began: Ci.OnMouseDownCell(this); break;
case TouchPhase.Moved: Ci.OnMouseOverCell(this); break;
case TouchPhase.Ended: Ci.OnMouseOverCell(this); break;
}
}
#endif
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question