Пример #1
0
        public bool destroyable;    // player oyunu terkettiginde true olmasi lazim.

        public Player(int hps, Board board)
        {
            healthPoints = hps;
            this.board = board;
			board.player = this;
            playerState = PlayerState.ALIVE;
        }
Пример #2
0
        public void createBoard (Board board)
		{
			this.board = board;
			board.tag = this;
			boardObject = (GameObject)GameObject.Instantiate(staticBoardObject);
			boardObject.name = "board_" + board.instanceId; 
			boardObject.transform.position = board.position;
			boardObject.transform.rotation = Quaternion.Euler( board.rotation );
			//Camera.main.transform.parent = boardObject.transform;
		}