Created
April 29, 2020 19:29
-
-
Save Keldrik/c55b43564e51f827810f59637d8a852d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Setzt die Position des script ausführenden GameObjects | |
// auf x:1, y:0, z:5 | |
this.transform.position.Set(1f, 0f, 5f); | |
// Hat den selben Effekt, nur weisen wir hier einen | |
// neuen Vector3 zu | |
this.transform.position = new Vector3(1f, 0f, 5f); | |
// Setzt das script ausführende GameObject auf die | |
// selbe Position wie anderesGameObject | |
this.transform.position = anderesGameObject.transform.position; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment