Esempio n. 1
0
    public virtual void Create(Map map)
    {
        _cameraMove = FindObjectOfType <CameraMove>();
        _camera     = FindObjectOfType <Camera>();
        _map        = map;

        var tilesField       = _map.GetTiles <Field>();
        var tileCreateObject = tilesField[Random.Range(0, tilesField.Count)];

        AddObject <Castle>(tileCreateObject);
        AddChampion <ChampionLevel1>(tileCreateObject);

        _cameraMove.LookAtTile(tileCreateObject);
    }