The OnObjectTouch
method has the object itself as a parameter, and the touch ID that was given optionally when the TouchCheck
statement was called.
OnObjectTouch
method, do a SELECT
on the object's tag value.Method OnObjectTouch:Int(obj:ftObject, touchId:Int) Select obj.GetTag()
btnPlay
, that is, the Play button:Case g.btnPlay
g.sndSelect.Play() g.StartNewGame()
btnBack
constant. This is the Back button:Case g.btnBack
gmMenu:
g.sndSelect.Play() g.layerTitle.SetActive(True) g.gameMode = g.gmMenu
btnExit
constant. This is the Exit button:Case g.btnExit
Error
method, with an empty string:Error("")
SELECT
statement:End Return 0 End
18.191.97.85