Пример #1
0
    public void Start()
    {
        unitManager = GetComponent <MapUnitManager>();

        mapParent = GameObject.Find("TerrainMap").transform;

        Invoke("Initialize", .05f);
    }
Пример #2
0
    private void Start()
    {
        unitManager = GetComponent <MapUnitManager>();

        myShip = Instantiate(shipPrefab, unitManager.unitParent);

        unitManager.myShip = myShip;
    }
    private void Start()
    {
        resourceList = GameManager.instance.gamedatabaseManager.mapResourcesObjects.Values.ToList();

        unitManager = GetComponent <MapUnitManager>();

        //Initialize();
    }
Пример #4
0
    private void Start()
    {
        GameManager.instance.globalCountryManager.OnAddCountryEvent    += OnAddCountryEvent;
        GameManager.instance.globalCountryManager.OnDeleteCountryEvent += OnDeleteCountryEvent;

        unitManager = GetComponent <MapUnitManager>();

        Initialize();
    }
Пример #5
0
    void Awake()
    {
        instance = this;

        terrainMap = TerrainMapController.instance.tilemap;

        Pathfinder.Initialize(terrainMap);

        unitManager      = GetComponent <MapUnitManager>();
        resourceManager  = GetComponent <MapResourceManager>();
        castleManager    = GetComponent <MapCastleManager>();
        cameraController = GetComponent <MapSceneCameraController>();
    }
Пример #6
0
    private void Start()
    {
        unitManager = MapSceneManager.instance.unitManager;

        unitManager.inputManager.OnGameTileClickEvent += OnGameTileClickedEvent;
    }
Пример #7
0
    private void Start()
    {
        displacement = Camera.main.transform.position - transform.position;

        unitManager = GetComponent <MapUnitManager>();
    }
Пример #8
0
    private void Start()
    {
        unitManager = GetComponent <MapUnitManager>();

        Initialize();
    }