Ejemplo n.º 1
0
    public void Initialize(IEntityInformationView entityInformationView)
    {
        this.entityInformationView = entityInformationView;

        if (entityInformationView.position != null)
        {
            entityInformationView.position.OnChanged += PositionChanged;
        }

        if (entityInformationView.rotation != null)
        {
            entityInformationView.rotation.OnChanged += RotationChanged;
        }

        if (entityInformationView.scale != null)
        {
            entityInformationView.scale.OnChanged += ScaleChanged;
        }

        entityInformationView.OnNameChange        += NameChanged;
        entityInformationView.OnStartChangingName += StartChangingName;
        entityInformationView.OnEndChangingName   += EndChangingName;
        entityInformationView.OnDisable           += Disable;
        entityInformationView.OnUpdateInfo        += UpdateInfo;
    }