How do i convert this in to C(Sharp)????

Hi guys can someone please tell me how i can covert the 2nd two lines in this code to C sharp thank you :slight_smile:

MoveDirection.y -= Gravity * Time.deltaTime;
			
var Controller = GetComponent(CharacterController);
						
var Flags = Controller.Move( MoveDirection * Time.deltaTime);    							
grounded = (Flags & CollisionFlags.CollidedBelow) !=0;

You actually donโ€™t have to do much at all.

MoveDirection.y -= Gravity * Time.deltaTime;

var Controller = GetComponent<CharacterController>();

var Flags = Controller.Move( MoveDirection * Time.deltaTime);

//assuming grouned is declared earlier as a bool                          
grounded = ( (Flags & CollisionFlags.CollidedBelow) !=0 );