void OnMouseOver() { switch (name) { case "Calcola": m_InfoOggetto.text = "Calcola le mosse e inizia a risolvere"; break; } if (Input.GetKey(KeyCode.Mouse0) && m_GameManagerHelpMe.IsGameRunning() && m_Animatore.isFermo()) { if (name.Equals("Calcola")) { m_AIHelpMe.HelpMeCalcola(); m_InfoOggetto.text = ""; } else if (name.Equals("Prossima")) { m_HelpMeTutor.ProssimaMossa(); } else if (name.Equals("Precedente")) { m_HelpMeTutor.MossaPrecedente(); } } }
void OnMouseOver() { if (Input.GetKeyDown(KeyCode.Mouse0) && m_GameManagerHelpMe.IsGameRunning() && m_Animatore.isFermo()) { GetComponent <Renderer> ().material.color = m_GameManagerHelpMe.getNextOrPreviousColorByActualColor(GetComponent <Renderer> ().material.color, true); } else if (Input.GetKeyDown(KeyCode.Mouse1)) { GetComponent <Renderer> ().material.color = m_GameManagerHelpMe.getNextOrPreviousColorByActualColor(GetComponent <Renderer> ().material.color, false); } }