Tanguy helped me out this morning with coding for the door, as the code we are using in C# is not working properly (even though we don't have any errors). Tanguy showed me how to have a door open when you click on it in Javascript.
function OnMouseDown() {
animation.Play("DoorOpen");
}
All we need to do is animate the doors opening and closing. We tested this code out on a quick scene with a cube as a door and it works.
No comments:
Post a Comment