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