Added IInteractable and Stations
This commit is contained in:
@@ -4,6 +4,7 @@ using Subsystems;
|
||||
using System.Collections;
|
||||
using System;
|
||||
using TMPro;
|
||||
using System.Collections.Generic;
|
||||
/*
|
||||
GameManager - hlavní tøida pro správu hry
|
||||
GameManager_Network - subsystém pro správu komunikace se serverem
|
||||
@@ -20,6 +21,7 @@ public class GameManager : MonoBehaviour
|
||||
protected GameManager_UI uiSubsystem;
|
||||
protected GameManager_Map mapSubsystem;
|
||||
protected GameManager_Input inputSubsystem;
|
||||
protected GameManager_Game gameSubsystem;
|
||||
|
||||
protected GameClient gameClient;
|
||||
|
||||
@@ -49,6 +51,9 @@ public class GameManager : MonoBehaviour
|
||||
private GameManager_Network _secondNetwork;
|
||||
private GameManager_Network _thirdNetwork;
|
||||
|
||||
[Header("Tasks")]
|
||||
public List<TaskData> AvailableTasks = new List<TaskData>();
|
||||
public StationSettings settings = new StationSettings();
|
||||
|
||||
void Start()
|
||||
{
|
||||
@@ -72,6 +77,7 @@ public class GameManager : MonoBehaviour
|
||||
networkSubsystem = new GameManager_Network(gameClient);
|
||||
mapSubsystem = new GameManager_Map(gameClient, MapCenterPoint, buildingSettings, pathwaySettings, areaSettings);
|
||||
inputSubsystem = new GameManager_Input(gameClient, Player, testMode);
|
||||
gameSubsystem = new GameManager_Game(gameClient, Player, MapCenterPoint, AvailableTasks);
|
||||
networkSubsystem.OpenConection();
|
||||
}
|
||||
private void Update()
|
||||
@@ -133,6 +139,10 @@ public class GameManager : MonoBehaviour
|
||||
{
|
||||
networkSubsystem.StartGame();
|
||||
}
|
||||
public void Interact()
|
||||
{
|
||||
//TODO: Interakce s úkoly
|
||||
}
|
||||
void OnApplicationQuit()
|
||||
{
|
||||
gameClient.Disconnect();
|
||||
|
||||
Reference in New Issue
Block a user