示例#1
0
 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;
 }
示例#2
0
 private void Start()
 {
     TeleportRoomSettingsScript = TeleportRoomSettingsScript.Instance;
 }