This is in the main character controller script and is controlled by a ray collision on an update function:
if (Input.GetMouseButtonDown(0)){
miniNode.GetComponent(rotationHandlerLeft).rotateLeftSmall();
}
And this is what I have for moving the rotations right now which works great but Id love for there to be some smooth Animation over time that locks at 90 increments, these are in a seperate script that has no update function at the moment :
function rotateLeftSmall () {
transform.Rotate(Vector3.up*-90); // Rotate to the left
print("Left Rotation");
}
I think this will work but im having trouble with where the updates go I think.
function rotateLeftSmall () {
transform.Rotate(Vector3.up * Time.deltaTime * -90)
}