예제 #1
0
 public void AssignSystemsReferences()
 {
     quirkManager      = FindObjectOfType <QuirkManager>();
     quirkPickerUI     = FindObjectOfType <QuirkPickerUI>();
     screenFadeHandler = FindObjectOfType <ScreenFadeHandler>();
     runHandler        = FindObjectOfType <RunHandler>();
 }
예제 #2
0
 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();
 }
예제 #3
0
    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);
        }
    }