Пример #1
0
 void Awake()
 {
     parser       = new BSPParser(RESOURCESPATH + FILENAME);
     _textures    = parser.Textures;
     _vertexes    = parser.Vertexes;
     _planes      = parser.Planes;
     _faces       = parser.Faces;
     _models      = parser.Models;
     _meshverts   = parser.Meshverts;
     _nodes       = parser.Nodes;
     _leafs       = parser.Leafs;
     _leaffaces   = parser.Leaffaces;
     _visdata     = parser.Visdata;
     _playerstart = parser.GetPlayerStartPosition();
 }