Esempio n. 1
0
    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();
    }
Esempio n. 2
0
    void EnterListener(SystemComponentView view)
    {
        var info = ((SystemDiagnoseableTrees)view.GetTree()).GetInfo(view);

        energyIndicator.SetValue(info.lastEnergy);
    }