Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
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