Unity - Transform.Position with Android Device Orientation?

How can ı do that? Any idea?

1 Answer

1

function Update(){

	if (-Input.acceleration.y >0.075){
	
	//Do Something	
	}
			
	if (Input.acceleration.y >0.075){
	
    //Do Something
	}
}

This is when the device is Horizontal