Пример #1
0
    /// <summary>
    /// 获取所有地雷列表
    /// </summary>
    /// <returns></returns>
    List <Done_tile_script> GetMines()
    {
        Done_init_script        script = FindObjectOfType <Done_init_script>();
        List <Done_tile_script> result = script.Mines;

        return(result);
    }
Пример #2
0
    /// <summary>
    /// 获取周围方块列表
    /// </summary>
    /// <returns></returns>
    List <Done_tile_script> GetAdjacentTiles()
    {
        Done_init_script        script = FindObjectOfType <Done_init_script>();
        List <Done_tile_script> result = script.GetAdjacentTiles(this);

        return(result);
    }