Beispiel #1
0
    void Start()
    {
        var g = Instantiate(GridPrefab, new Vector3(0, 0, 0), Quaternion.identity);

        grid = g.GetComponent <GridMaker>();
        grid.MoveCharacter        += MoveCharacter;
        grid.GetSelectedCharacter += () => { return(SelectedCharacter); };
        grid.GetCharacters        += GetCharacters;
        grid.IsFirstTurn          += IsFirstTurn;
        grid.SetFirstPosition     += SetInitialCharacterPosition;

        team1 = new List <Character>();
        team2 = new List <Character>();

        InitializeTeams();

        var teams = new List <Character>();

        teams.AddRange(team1);
        teams.AddRange(team2);
        initative = new Initiative();
        initative.Init(teams);

        Next();
    }