public void OnButtonPressed(VirtualButtonBehaviour vb) { if (vb.name == "PilluleRouge") { m_Renderer.material = R; instance.UpScore(1000); } if (vb.name == "PilluleBleu") { m_Renderer.material = B; SceneManager.LoadScene("tamere", LoadSceneMode.Single); } }
public void OnTrackableStateChanged( TrackableBehaviour.Status previousStatus, TrackableBehaviour.Status newStatus) { if (newStatus == TrackableBehaviour.Status.DETECTED || newStatus == TrackableBehaviour.Status.TRACKED) { if (isUsed) { instance.UpScore(100); } } else { Debug.Log("NOLLOLL"); } }