I’m trying to make it so that when I left click my shield will come out to block. I have the animation, now I need to know how to call in the animation from the script (.cs) I would not recommend Unity for just starting in coding, haha. I just need to know how to do it. So yeah, also if you can help me out by adding what it does // or */ whatever it is in .cs that is used to define, that’d be great since I don’t just want answers, I want to learn.
Ok… For coding practice you should try unity Gems or even just you tube Google C# tutorials often gives good results.
Do you know if your using Legacy or Mecanim Animations? the method t control them in C# is different for the two types. its more or less the same… but basically you use a state machine to check and set which animation state you are in… then make an condition that stipulates whenever you press the left moue button… you set your Animation state to the state and your animation will play
Worked for me. (Or something similar, mess around with it if it doesn’t, I’m doing this off memory.