Exemple #1
0
    virtual protected void Awake()
    {
        videoPlayer = GetComponent <VideoPlayer>();
        if (videoPlayer == null)
        {
            Debug.LogError("no video player for " + name + " ?", transform);
        }

        if (clips != null && clips.Length > 9)
        {
            videoPlayer.clip = clips[0];
        }

        vMesh = (HelperVisibleMesh)HelperVisible.createVisibility(this, VisibilityMode.MESH);

        MeshRenderer render = vMesh.getRender();

        videoPlayer.targetMaterialRenderer = render;

        Vector3 lScale = render.transform.localScale;

        lScale *= scale;
        render.transform.localScale = lScale;

        //videoPlayer.loopPointReached += onLoop;
        //meshCanvas = HalperComponentsGenerics.getComponentContext<MeshRenderer>(transform, "canvas");
    }
Exemple #2
0
    protected override void buildCapacity()
    {
        base.buildCapacity();

        Debug.Assert(owner != null, GetType() + ":" + name);
        visir = HelperVisible.createVisibility(owner as MonoBehaviour, getVisibilityMode());
    }
Exemple #3
0
    private void Awake()
    {
        h = (HelperVisibleUi)HelperVisible.createVisibility(this, VisibilityMode.UI);
        h.setTextLabel(VersionManager.getFormatedVersion());

        h.show();
    }
Exemple #4
0
        private void Awake()
        {
            visirUi = (HelperVisibleUi)HelperVisible.createVisibility(this, VisibilityMode.UI);

            created();
        }