Top Down Camera Rotation with StateManager.SetState

I created a very simple camera rotation (With the help from the Discord) for the Third Person Top Down camera angle. It involves having multiple states which are simply referenced through If statements. You have to create multiple states for your camera which are attached in the comment to have the camera rotate. I am sure that there are better ways of doing it but this is an easy way to help people understand StateManager.SetState.
 

Attachments

  • RotateCamera (1).cs
    5.6 KB · Views: 25
Oof, you can only attach 3 files per comment.
 

Attachments

  • North.asset
    644 bytes · Views: 15
  • East.asset
    643 bytes · Views: 11
  • South.asset
    644 bytes · Views: 11
Top