On Sale: GamesAssetsToolsTabletopComics
Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
Tags
(+1)

For sure! I don't think GetKeyDown(KeyCode.Mouse0) returns the position of the mouse though, you need to use something like Input.MousePosition with Camera.ScreenPointToRay and Physics.Raycast to get information from the scene. Let's you get information from the objects you click on :)

If you look for the mouse position you also wanna clamp it,