public void Init() { adventurerSystemBehaviour = GameObject.FindObjectOfType <AdventurerSystemBehaviour>(); adventurerSystem = adventurerSystemBehaviour.system; SpawnAgents(); //Get Adventurer Agent getAdventurerAgent = GameObject.FindObjectOfType <GetCurrentAdventurerAgent>(); adventurerAgent = getAdventurerAgent.CurrentAgent; //Generate travelSubsystem of the adventurerSystem travelSubsystem = adventurerSystem.travelSubsystem; travelSubsystem.Start(); adventurerSystem.travelSubsystem = travelSubsystem; //Request System requestShopSystemBehaviour = GameObject.FindObjectOfType <RequestShopSystemBehaviour>(); requestShopSystem = requestShopSystemBehaviour.system; requestSystem = requestShopSystem.requestSystem; requestSystem.Start(); //Generate PlayerFighterData of the adventurerAgent adventurerAgent.gameObject.GetComponent <AdventurerFighterData>().Start(); //Generate adventurerInventory of the adventurerAgent adventurerInventory = adventurerAgent.adventurerInventory; //Generate agentInventory of the adventurerAgent adventurerAgentInventory = adventurerAgent.inventory; adventurerAgent.ResetEconomyAgent(); //Generate AdventurerRequestTaker adventurerAgent.requestTaker.Start(); //Get ShopAgent getShopAgent = GameObject.FindObjectOfType <GetCurrentShopAgent>(); shopAgent = getShopAgent.CurrentAgent; shopAgent.shopInput.Awake(); shopAgent.agentInventory.ResetInventory(); shopAgent.craftingInventory.ResetInventory(); shopAgent.wallet.Reset(); //ShopSystem shopCraftingSystemBehaviour = GameObject.FindObjectOfType <ShopCraftingSystemBehaviour>(); shopCraftingSystemBehaviour.Start(); agentShopSubSystem = shopCraftingSystemBehaviour.system.shopSubSubSystem; craftingSubSystem = shopCraftingSystemBehaviour.system.craftingSubSubSystem; //ResetSystem environmentReset = GameObject.FindObjectOfType <EnvironmentReset>(); environmentReset.Start(); //Config configSystem = GameObject.FindObjectOfType <EconomyProject.Scripts.ConfigSystem>(); configSystem.Start(); }