private void Start() { questController = FindObjectOfType <QuestSystem.QuestController>(); spawnPosition = transform.position; if (wander) { Wander(); } }
protected void GetControllers() { inventoryController = FindObjectOfType <InventoryController>(); craftingInventory = FindObjectOfType <CraftingInventory>(); consumableInventory = FindObjectOfType <ConsumableInventory>(); characterController = FindObjectOfType <BattleSystem.CharacterController>(); sceneController = FindObjectOfType <SceneController>(); questController = FindObjectOfType <QuestController>(); }
private void Start() { questController = FindObjectOfType <QuestController>(); EventController.OnQuestCompleted += Completed; }