// Start is called before the first frame update void Start() { RectTransform rect = GetComponent <RectTransform>(); menuBounds = new Bounds(new Vector2(Screen.width / 2, Screen.height / 2), new Vector2(1920, 1080)); player = ReInput.players.GetPlayer(0); manager = FindObjectOfType <GameSetupManager>(); }
void Awake() { if (instance == null) { instance = this; } DontDestroyOnLoad(gameObject); }
// Start is called before the first frame update void Start() { manager = FindObjectOfType <GameSetupManager>(); }