i created a door animation and assigned to the object and animation are playing by clicking in screen area but
i need it to play only by clicking the object
and my object also has a script to rotate by mouse
so i cant use camera.main camera is there is any other way to do this
Not sure why you think you can’t use the camera.main camera in this case.
Have you try Camera.ScreenPointToRay with Raycasting detection yet?