Question by
MrMyers743 · Oct 13, 2019 at 01:55 PM ·
c#gameobjecttransform
Help Moving GameObject of a Type
Hello,
I am currently creating a music based game, and one part of it is that after a certain amount of time, an image must move instantaneously a certain amount to the left (to reveal the rest of the image, however I am struggling to make the code work.
Essentially I wish to move any GameObject containing the script SheetMusic44 140 along the x axis of the world, and currently have this:
transform.FindObjectOfType<SheetMusicTest44>(150f, 0, 0, Space.World));
can someone help? Mush appreciated!
Comment
Your answer
Follow this Question
Related Questions
How To Make A Character Stop At A Block? 0 Answers
How To Make An Object Appear In Front Of Player Without Cloning? 1 Answer
Deleting objects at specific position 1 Answer
UnityException: Transform child out of bounds (C# Unity) 0 Answers
Cant get setParent to actually set the parent for child. 0 Answers