コード例 #1
0
ファイル: Tile.cs プロジェクト: peterdocter/Pacman-Unity
 internal Tile(GameField map, Vector3 player_position)
 {
     this._map = map;
     int col = (int)(Math.Abs(player_position.x) / map.TileSize) + 1;
     int row = (int)(Math.Abs(player_position.z) / map.TileSize) + 1;
     // Set the rest:
     this.Init(row, col);
 }
コード例 #2
0
 internal Tile(GameField map, int row, int column)
 {
     this._map = map;
     this.Init(row, column);
 }
コード例 #3
0
ファイル: Tile.cs プロジェクト: peterdocter/Pacman-Unity
 internal Tile(GameField map, int row, int column)
 {
     this._map = map;
     this.Init(row, column);
 }