Raphafrei

Key

May 30th, 2016
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.47 KB | None | 0 0
  1. if(Input.GetKeyDown(KeyCode.F)){
  2.                     if(keyInv.Keys[keyIndice] == true){
  3.                         source.clip = openS;
  4.                         source.Play();
  5.                         timeToOpen = 0;
  6.                 //      transform.Rotate(0 , -90, 0);
  7.                         keyInv.Keys[keyIndice] = false;
  8.                     }
  9.                     if (keyInv.Keys[keyIndice] == false) {
  10.                         source.clip = notKeyed;
  11.                         source.Play();
  12.                     }
  13.                 }
Advertisement
Add Comment
Please, Sign In to add comment