예제 #1
0
    private void Start()
    {
        ew = new EventWatcher();
        characterFactory = new CharacterFactory(ew);
        actionFactory    = new ActionFactory(ew);
        cellFactory      = new CellFactory();
        g = new BattleGrid(WIDTH, HEIGHT);
        List <BattleCell> actionCells    = new List <BattleCell>();
        List <BattleCell> characterCells = new List <BattleCell>();

        characters = AddChars();
        g.PlaceCellsRandom(characters);
        List <BattleCell> targets = AddTargets();

        g.PlaceCellsRandom(targets);
        Object.FindObjectOfType <GridView>().grid = g;
        Object.FindObjectOfType <GridView>().CreateView();
    }