public void AssignSystemsReferences() { quirkManager = FindObjectOfType <QuirkManager>(); quirkPickerUI = FindObjectOfType <QuirkPickerUI>(); screenFadeHandler = FindObjectOfType <ScreenFadeHandler>(); runHandler = FindObjectOfType <RunHandler>(); }
private void Awake() { ChoseNextRoom(); screenFadeHandler = FindObjectOfType <ScreenFadeHandler>(); quirkPickerUI = FindObjectOfType <QuirkPickerUI>(); playerCount = FindObjectOfType <PlayerCount>(); enemySpawner = FindObjectOfType <EnemySpawner>(); quirkSpawner = FindObjectOfType <QuirkSpawner>(); currentRoom = roomParent.transform.GetChild(0).gameObject; SetPlayerPosArray(); }
void Awake() { sceneHandler = FindObjectOfType <ScreenFadeHandler>(); playerStats = FindObjectOfType <PlayerStats>(); playerCount = FindObjectOfType <PlayerCount>(); playerSpawner = FindObjectOfType <PlayerSpawner>(); //playerCombat = FindObjectOfType<PlayerCombat>(); playerInput = GetComponent <PlayerInput>(); controls = new PlayerInputMap(); if (playerCount != null) { playerCount.AddPlayerInputManager(gameObject); } }