Пример #1
0
 public void Start()
 {
     MoveCalc           = GameObject.FindObjectOfType <MoveCaleulator>();
     PieceSelectorLight = GameObject.Find("PieceSelectorLight");
     PSLtoggle          = PieceSelectorLight.GetComponentInChildren <Light>();
     numCapturedPieces  = 0;
     gridPosmulti       = new Vector3Int(-10, 0, 10);
 }
Пример #2
0
    public void Start()
    {
        gameState = GameState.PLAYER_1;
        PlayerCam = GameObject.FindGameObjectWithTag("MainCamera").GetComponent <Camera>();

        PieceSelectorLight = GameObject.Find("PieceSelectorLight");
        PSLtoggle          = PieceSelectorLight.GetComponentInChildren <Light>();
        boardArray         = new Dictionary <string, BoardSquare>();         //Add all the squares to our board, works with manually placed squares too
        MoveCalc           = GameObject.FindObjectOfType <MoveCaleulator>(); //Only ever one attaced to Pieces prefab
        pieceFactory       = GameObject.FindObjectOfType <PieceFactory>();
        plCont             = GameObject.FindObjectOfType <PlayerController>();
        InitBoard();
    }