void UpdateView(SystemComponentView component) { var info = ((SystemDiagnoseableTrees)(component.GetTree())).GetInfo(component); GetComponent <Renderer>().material.color = Color.Lerp(Color.red, Color.green, info.lastEnergy); text.text = info.lastEnergy.ToString(); }
void EnterListener(SystemComponentView view) { var info = ((SystemDiagnoseableTrees)view.GetTree()).GetInfo(view); energyIndicator.SetValue(info.lastEnergy); }
void UpdateView(SystemComponentView component) { current = component; componentName.text = current.GetItem().lName; componentKey.text = current.key.ToUpper(); }
public SystemLink.Info GetInfo(SystemComponentView node) { return(links[node]); }