Example #1
0
 protected Figure(Cell location, NameFigure name, ColorFigure color, BoardOfChess board)
 {
     Location = location;
     Name     = name;
     Color    = color;
     Board    = board;
 }
Example #2
0
    void Start()
    {
        string json = File.ReadAllText(Application.dataPath + "/Scenes/Resources/ListObjectType.txt");  //загружаем названия фигур

        jsonName           = JsonUtility.FromJson <NameFigure>(json);
        geometryObjectData = Resources.Load("Prefab/GeometryObjectData") as GeometryObjectData;         //загружаем условия смены цвета
    }
Example #3
0
 protected INMFigure(Cell location, NameFigure name, ColorFigure color, BoardOfChess board)
     : base(location, name, color, board)
 {
 }