// Update is called once per frame void Update() { if (Input.GetKeyDown("space") && this.spaceActivate) { icBinkMaterial bm = this.GetComponent <icBinkMaterial>(); if (bm != null) { if (bm.getBinkPlayOptions().movieSpeed == speed) { bm.getBinkPlayOptions().movieSpeed = 0.0f; } else { bm.getBinkPlayOptions().movieSpeed = speed; } } } }
// Use this for initialization void Start() { if (!spaceActivate) { icBinkMaterial bm = this.GetComponent <icBinkMaterial>(); if (bm != null) { bm.getBinkPlayOptions().movieSpeed = speed; } else { Debug.Log("null"); } } }