Hello, excuse my English, I'm from outside the US. I would like to know how to rotate my camera by C # as in Mario 3d land / Mario 3d world, I have a cube collider in the scene, that when the character collides with the cube the camera rotates. Here's what I got to do from the script, I'm a beginner in C#.
`
void OnTriggerEnter(Collider other)
{
if (other.gameObject.name == "cubetrigger")
{
[...]
}
}`
↧