Beispiel #1
0
 void Start()
 {
     currBoard   = BoardMaker.MakeBoard(Data.instance.currBoard);
     turretBoard = new BoardNode[currBoard.GetLength(0), currBoard.GetLength(1)];
     BoardMaker.MakeTurretBoard(new Vector2Int(currBoard.GetLength(0), currBoard.GetLength(1)));
     blockerHolder = new GameObject("Blockers").GetComponent <Transform>();
     baseHolder    = new GameObject("AllYourBASE").GetComponent <Transform>();
     SpawnerHolder = new GameObject("Spawners").GetComponent <Transform>();
     PathHolder    = new GameObject("Pathways").GetComponent <Transform>();
     SetupForTesting();
     UpdateText();
     curState = stateGame;
 }
    void Start()
    {
        Data_Board boardDat = Data.instance.currBoard;

        gameBoard = BoardMaker.MakeBoard(boardDat);
        foreach (Vector2Int charPos in boardDat.playerPositions)
        {
            AddCharacter(charPos);
        }
        foreach (ReflectorZones reflectorZ in boardDat.refZones)
        {
            AddReflector(reflectorZ.pos, reflectorZ.rot);
        }
        background.color = Data.instance.artData.characterColour[charTurn];
    }