Hi, what I´m trying to do is that the camera rotates for a certain time and then it goes back to its original position, how can I do that? I tried to use the code WaitForSeconds, but it gives me an error(The code with the 2 slashes).
Rotaion Code:
else if(twists > 0){
transform.Find("Main Camera").Rotate(0,0,180);
twists -= 1;
GUIManager.SetPowers(twists);
//yield return new WaitForSeconds(10);
transform.Find("Main Camera").Rotate(0,0,180);
}