-
Recently Browsing 0 members
- No registered users viewing this page.
-
Similar Content
-
The Unity 6 game engine and tools will officially launch October 17
By John Callaham,
- 3 replies
- 0 views
-
Unity finally does away with its Runtime Fee for game developers
By John Callaham,
- 1 reply
- 0 views
-
Microsoft's former Xbox communication head Larry Hryb has joined Unity's Community team
By John Callaham,
- gaming
- larry hryb
- (and 3 more)
- 3 replies
- 0 views
-
- 0 replies
- 2 views
-
Game engine company Unity will lay off 25 percent of its employees by the end of March
By John Callaham,
- unity
- unity engine
- (and 2 more)
- 4 replies
- 6 views
-
Question
DaveGreen93
Hi guys,
Hoping someone here can help me with C# and Unity.
I'm working on a project and trying to animate a door I created in 3DS max. I've attached a script to a switch in the scene and press it. It isn't acting as I would expect.
Instead of playing the open animation, it just plays the close animation every time I interact with the switch.
Adding the Debug lines, shows that "First" is passed twice for every interaction and "Closed" and "Opened" are passed once each. I'm struggling to see why this is and hoping a fresh pair of eyes could spot the issue and suggest a solution.
Link to comment
https://www.neowin.net/forum/topic/1253354-c-door-animation-script-in-unity-if-statement-issue/Share on other sites
16 answers to this question
Recommended Posts