Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(Input.GetKeyDown(KeyCode.F)){
- if(keyInv.Keys[keyIndice] == true){
- source.clip = openS;
- source.Play();
- timeToOpen = 0;
- // transform.Rotate(0 , -90, 0);
- keyInv.Keys[keyIndice] = false;
- }
- if (keyInv.Keys[keyIndice] == false) {
- source.clip = notKeyed;
- source.Play();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment