Esempio n. 1
0
 // 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;
             }
         }
     }
 }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     if (!spaceActivate)
     {
         icBinkMaterial bm = this.GetComponent <icBinkMaterial>();
         if (bm != null)
         {
             bm.getBinkPlayOptions().movieSpeed = speed;
         }
         else
         {
             Debug.Log("null");
         }
     }
 }