Answer by Pawscal
you could do something like void Update () { if (Input.GetMouseButton (0)) { transform.parent.Translate(Vector3.down*Time.deltaTime*4); } } it should work, no need to use OnMouseDown
View ArticleAnswer by HarshadK
You can get a reference to the MoveBlock script in your StopBlockMovement script then you can set enabled flag to false for that script and it will stop the running of update function (along with any...
View ArticleAnswer by Pawscal
you could do something like void Update () { if (Input.GetMouseButton (0)) { transform.parent.Translate(Vector3.down*Time.deltaTime*4); } } it should work, no need to use OnMouseDown
View ArticleAnswer by HarshadK
You can get a reference to the MoveBlock script in your StopBlockMovement script then you can set enabled flag to false for that script and it will stop the running of update function (along with any...
View Article
More Pages to Explore .....