Seems like a really a silly question but shockingly, I’m struggling quite a bit. I’ve been able to implement TouchPhase.Began and TouchPhase.Moved but I’m not sure how to use TouchPhase.Ended.
The following code shows how I’m currently testing for it.
else if (Input.GetTouch(0).phase == TouchPhase.Ended)
{
Debug.Log("IT HAS ENDED");
}
This part of my function never gets called and I assume it’s because when a touch ends there’s no Input. This might be relevant but this code is located in Update().
I do appreciate any and all comments so thank you for reading through and I hope you can help me.
Edit: nvm, turns out i was nesting it incorrectly.