Exemple #1
0
 void Start()
 {
     launcher                  = FindObjectOfType <BattleLauncher>();
     characterController       = FindObjectOfType <CharacterController>();
     sceneController           = FindObjectOfType <SceneController>();
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
 private void Awake()
 {
     alivePlayers.Clear();
     questController           = FindObjectOfType <QuestSystem.QuestController>();
     battleLauncher            = FindObjectOfType <BattleLauncher>();
     sceneController           = FindObjectOfType <SceneController>();
     inventoryController       = FindObjectOfType <InventoryController>();
     SceneManager.sceneLoaded += OnSceneLoaded;
 }
    private void Awake()
    {
        craftingInventory   = FindObjectOfType <CraftingInventory>();
        consumableInventory = FindObjectOfType <ConsumableInventory>();
        questController     = FindObjectOfType <QuestController>();
        menuController      = FindObjectOfType <MenuController>();
        characterController = FindObjectOfType <BattleSystem.CharacterController>();
        inventoryController = FindObjectOfType <InventoryController>();
        sceneController     = FindObjectOfType <SceneController>();
        battleLauncher      = FindObjectOfType <BattleLauncher>();

        SceneManager.sceneLoaded += OnSceneLoaded;
    }