示例#1
0
    public void UpdateView()
    {
        textName.text = this._objectModel.GetName();

        // selecting
        if (_objectModel.IsSelected())
        {
            imageBackground.color = _colorSelected;
            _gameManager.ShowDeleteButton();
            GameObject.FindWithTag("DebugText").GetComponent <Text>().text = _objectModel.GetName();
        }
        else
        {
            print("BEFORE ERROR ! game object " + _objectModel.GetName());
            imageBackground.color = Color.white;
        }

        // highlighting
        imageHighlight.SetActive(_objectModel.IsHighlighted());
    }