void OnMouseExit() { if (mainScript.hotspotsActive) { //Debug.Log("Exit hostpot " + gameObject.name); mainScript.SetCursorInactive(); } }
void disableInteaction() { mainScript.hotspotsActive = false; mainScript.SetCursorInactive(); }