Last active
May 29, 2024 14:03
-
-
Save olegmrzv/5adbe4146e95e2938c555f79ca8935f5 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
public class SomeComponent : MonoBehaviour | |
{ | |
private void Awake() | |
{ | |
transform.position = new Vector3(1, 1, 1); | |
} | |
private void Start() | |
{ | |
transform.position = new Vector3(2, 2, 2); | |
} | |
} | |
public static class Entry | |
{ | |
[RuntimeInitializeOnLoadMethod] | |
public static void Initialize() | |
{ | |
var obj = new GameObject(); | |
obj.AddComponent<SomeComponent>(); | |
obj.transform.position = new Vector3(3, 3, 3); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment