private void Awake() { if (Instance != null) { Destroy(Instance.gameObject); } Instance = this; UI = GameObject.Find("Main Camera"); Player = GameObject.Find("Player"); Player.transform.position = GameObject.Find("Start").gameObject.transform.position; Wallpaper.transform.position = GameObject.Find("Start").gameObject.transform.position + OffsetWallpaper; }
private void Start() { TeleportRoomSettingsScript = TeleportRoomSettingsScript.Instance; }