need help creating a safe code script.meaning the object safe not litterly;3
i already placed a script so far but i want it more interactive like beeing able to move the lock and get the password you need,c++,c#,javascript all works for just need help in creating it, code needed to proceed 7482 if correct play animation simple when near
also if someone can help me edit this code due to compiling error thanks
using UnityEngine;
using System.Collections;
Animator animator ;
private var open : boolean;
int code;
function Start () {
animator = GetComponent();
}
function Update () {
system.out.println("give code 7482");
while(code!=7482){
for(i=1;i<=4;i++){
private $$anonymous$$eyCode[] keyCodes={
$$anonymous$$eyCode.Alpha1,
$$anonymous$$eyCode.Alpha2,
$$anonymous$$eyCode.Alpha3,
$$anonymous$$eyCode.Alpha4,
$$anonymous$$eyCode.Alpha5,
$$anonymous$$eyCode.Alpha6,
$$anonymous$$eyCode.Alpha7,
$$anonymous$$eyCode.Alpha8,
$$anonymous$$eyCode.Alpha9,
};
code=code+keycode*(10^i));
};
};
animator.SetBool("code",true);
};
Your answer
Follow this Question
Related Questions
Character Animator controller/movement 0 Answers
Referencing a variable from another script 1 Answer
Player controlled game object with moving parts? 0 Answers
First person shooter : Footsteps! 1 Answer
Timer wont work 0 Answers