private void Group_OnChange(Toggle newActive) { if (Application.internetReachability != NetworkReachability.NotReachable) { toggleInfo = newActive.GetComponent <ToggleObj>(); choosenGameImage.sprite = toggleInfo.GameImage; loading.StartCour(); parsing.NeedId = ParseFromHTML.futureGames; parsing.GameName = toggleInfo.GameName; parsing.UpdatePage(toggleInfo.GameHtml); } }
public bool GetValue() { if (nodeElement != null) { if (nodeElement.GetType() == typeof(ToggleObj)) { ToggleObj elem = (ToggleObj)nodeElement; return(elem.state); } else if (nodeElement.GetType() == typeof(Gate)) { Gate elem = (Gate)nodeElement; return(elem.output); } else if (nodeElement.GetType() == typeof(DoubleElement)) { DoubleElement elem = (DoubleElement)nodeElement; return(elem.GetValue()); } } return(false); }